9template<
typename T,
typename U>
11 T mean = std::pow(a.
mean(),
exp);
18 T mean = std::pow(a.
mean(),
exp.mean());
19 T dcda =
exp.mean() * std::pow(a.
mean(),
exp.mean() - 1);
20 T dcdb = std::log(a.
mean()) * std::pow(a.
mean(),
exp.mean());
26 T mean = std::sqrt(a.
mean());
27 T dcda = 1.0 / (2.0 * std::sqrt(a.
mean()));
33 T mean = std::cbrt(a.
mean());
34 T dcda = 1.0 / (3.0 * std::cbrt(std::pow(a.
mean(), 2.0)));
40 T mean = std::exp(a.
mean());
41 T dcda = std::exp(a.
mean());
47 T mean = std::exp2(a.
mean());
48 T dcda = mean * std::log(2.0);
54 T mean = std::expm1(a.
mean());
55 T dcda = std::exp(a.
mean());
61 T mean = std::log(a.
mean());
62 T dcda = 1.0 / a.
mean();
68 T mean = std::log10(a.
mean());
69 T dcda = 1.0 / (a.
mean() * std::log(10.0));
75 T mean = std::log2(a.
mean());
76 T dcda = 1.0 / (a.
mean() * std::log(2.0));
82 T mean = std::log1p(a.
mean());
83 T dcda = 1.0 / (a.
mean() + 1.0);
89 T mean = std::hypot(a.
mean(), b.
mean());
95template<
typename T,
typename U>
97 T mean = std::hypot(a.
mean(), b);
98 T dcda = a.
mean() / std::hypot(a.
mean(), b);
102template<
typename T,
typename U>
110 boost::numeric::sqrt(boost::numeric::interval<T>(a.
lower(), a.
upper()));
111 return Interval<T>(result.lower(), result.upper());
Models a numeric interval.
Definition interval.hpp:21
value_t upper() const
Returns the upper bound of the interval.
Definition interval.hpp:67
value_t lower() const
Returns the lower bound of the interval.
Definition interval.hpp:59
Models an unceratin variable.
Definition uncertain.hpp:33
value_t mean() const
Get the mean value of the variable.
Definition uncertain.hpp:82
Defines the Interval class.
Uncertain< T > unary_result(const Uncertain< T > &a, T mean, T dcda)
Generalized Unary Changes.
Definition operation_common.hpp:44
Uncertain< T > binary_result(const Uncertain< T > &a, const Uncertain< T > &b, T mean, T dcda, T dcdb)
Generalized Binary Changes.
Definition operation_common.hpp:85
The primary namespace for the sigma library.
Definition operation_common.hpp:10
Uncertain< T > sqrt(const Uncertain< T > &a)
Calculate the square root of an uncertain variable.
Definition exponents.ipp:25
Uncertain< T > hypot(const Uncertain< T > &a, const Uncertain< T > &b)
Calculate the square root of the sum of squared arguments.
Definition exponents.ipp:88
Uncertain< T > log(const Uncertain< T > &a)
Calculate the natural logarithm of a variable.
Definition exponents.ipp:60
Uncertain< T > expm1(const Uncertain< T > &a)
Calculate the Euler's number raised to the power of an uncertain variable, then subtract 1.
Definition exponents.ipp:53
Uncertain< T > log1p(const Uncertain< T > &a)
Calculate the natural logarithm of one plus a variable.
Definition exponents.ipp:81
Uncertain< T > log2(const Uncertain< T > &a)
Calculate the base 2 logarithm of a variable.
Definition exponents.ipp:74
Uncertain< T > exp2(const Uncertain< T > &a)
Calculate 2 raised to the power of an uncertain variable.
Definition exponents.ipp:46
Uncertain< T > log10(const Uncertain< T > &a)
Calculate the base 10 logarithm of a variable.
Definition exponents.ipp:67
Uncertain< T > pow(const Uncertain< T > &a, const U &exp)
Exponentiation of a variable.
Definition exponents.ipp:10
Uncertain< T > cbrt(const Uncertain< T > &a)
Calculate the cube root of an uncertain variable.
Definition exponents.ipp:32
Uncertain< T > exp(const Uncertain< T > &a)
Calculate the Euler's number raised to the power of an uncertain variable.
Definition exponents.ipp:39
Common implementation details for operations.