10 T mean = a.
mean() * to_degrees;
18 T mean = a.
mean() * to_radians;
25 T mean = std::sin(a.
mean());
26 T dcda = std::cos(a.
mean());
32 T mean = std::cos(a.
mean());
33 T dcda = -std::sin(a.
mean());
39 T mean = std::tan(a.
mean());
40 T dcda = std::pow(std::tan(a.
mean()), 2.0) + 1;
46 T mean = std::asin(a.
mean());
47 T dcda = 1 / std::sqrt(1 - std::pow(a.
mean(), 2));
53 T mean = std::acos(a.
mean());
54 T dcda = -1 / std::sqrt(1 - std::pow(a.
mean(), 2));
60 T mean = std::atan(a.
mean());
61 T dcda = 1 / (1 + std::pow(a.
mean(), 2));
68 T mean = std::atan2(y.
mean(), x.
mean());
69 T dcda = x.
mean() / (std::pow(x.
mean(), 2) + std::pow(y.
mean(), 2));
70 T dcdb = -y.
mean() / (std::pow(x.
mean(), 2) + std::pow(y.
mean(), 2));
75template<
typename T,
typename U>
77 T mean = std::atan2(y.
mean(), x);
78 T dcda = x / (std::pow(x, 2) + std::pow(y.
mean(), 2));
82template<
typename T,
typename U>
84 T mean = std::atan2(y, x.
mean());
85 T dcda = -y / (std::pow(x.
mean(), 2) + std::pow(y, 2));
Models an unceratin variable.
Definition uncertain.hpp:34
value_t mean() const
Get the mean value of the variable.
Definition uncertain.hpp:71
void inplace_binary(Uncertain< T > &c, const Uncertain< T > &b, T mean, T dcda, T dcdb)
Generalized Inplace Binary Changes.
Definition operation_common.hpp:61
constexpr double pi
Value of Pi.
Definition operation_common.hpp:12
Uncertain< T > unary_result(const Uncertain< T > &a, T mean, T dcda)
Generalized Unary Changes.
Definition operation_common.hpp:43
The primary namespace for the sigma library.
Definition affine.hpp:12
Uncertain< T > atan2(const Uncertain< T > &y, const Uncertain< T > &x)
Two argument arctangent.
Definition trigonometry.ipp:66
GeneralInterval< T > sin(const GeneralInterval< T > &a)
Calculate the sine of a general interval.
Definition trigonometry.ipp:9
GeneralInterval< T > atan(const GeneralInterval< T > &a)
Calculate the arctangent of a general interval.
Definition trigonometry.ipp:71
GeneralInterval< T > cos(const GeneralInterval< T > &a)
Calculate the cosine of a general interval.
Definition trigonometry.ipp:17
Uncertain< T > degrees(const Uncertain< T > &a)
Convert from radians to degrees.
Definition trigonometry.ipp:8
GeneralInterval< T > asin(const GeneralInterval< T > &a)
Calculate the arcsine of a general interval.
Definition trigonometry.ipp:50
GeneralInterval< T > acos(const GeneralInterval< T > &a)
Calculate the arccosine of a general interval.
Definition trigonometry.ipp:61
Uncertain< T > radians(const Uncertain< T > &a)
Convert from degrees to radians.
Definition trigonometry.ipp:16
GeneralInterval< T > tan(const GeneralInterval< T > &a)
Calculate the tangent of a general interval.
Definition trigonometry.ipp:23
Common implementation details for operations.