sigma  1.0.0
Loading...
Searching...
No Matches
trigonometry.ipp
1#pragma once
2#include <cmath>
3
4namespace sigma {
5
6template<typename IntervalType>
9 a, [](const IntervalType& x) { return sigma::sin(x); },
10 [](auto m) { return std::sin(m); });
11}
12
13template<typename IntervalType>
16 a, [](const IntervalType& x) { return sigma::cos(x); },
17 [](auto m) { return std::cos(m); });
18}
19
20template<typename IntervalType>
23 a, [](const IntervalType& x) { return sigma::tan(x); },
24 [](auto m) { return std::tan(m); });
25}
26
27template<typename IntervalType>
30 a, [](const IntervalType& x) { return sigma::asin(x); },
31 [](auto m) { return std::asin(m); });
32}
33
34template<typename IntervalType>
37 a, [](const IntervalType& x) { return sigma::acos(x); },
38 [](auto m) { return std::acos(m); });
39}
40
41template<typename IntervalType>
44 a, [](const IntervalType& x) { return sigma::atan(x); },
45 [](auto m) { return std::atan(m); });
46}
47
48} // namespace sigma
Models an interval together with a best estimate inside it.
Definition triplex.hpp:42
Triplex< IntervalType > apply_unary_(const Triplex< IntervalType > &a, BoundsFunction &&bounds_fxn, NominalFunction &&nominal_fxn)
Applies a unary function to a triplex.
Definition apply_unary.hpp:49
The primary namespace for the sigma library.
Definition affine.hpp:12
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
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
GeneralInterval< T > tan(const GeneralInterval< T > &a)
Calculate the tangent of a general interval.
Definition trigonometry.ipp:23