These functions allows performing trigonometric computations
All trigonometric functions exists in three flavors for parameters being radian, degrees or \(\pi\) multiples.
The main avantage of using eve::cospi(x)
instead of eve::cos(eve::pi(as(x)* x))
(as well as the other pi ended functions) is that if x
is exactly representable the multiplication by the floating \(\pi\) multiplier is not.
For example eve::cos(eve::pio_2(as<double>()))) is 6.1232e-17 (as pio_2 is not exact), but eve::cospi(0.5) is 0 (as 0.5 is exact).
Moreover each function can be decorated with eve::quarter_circle, eve:half_circle, eve::full_circle, eve::medium, eve::big.
Variables | |
constexpr full_circle_type const | eve::full_circle = {} |
Higher-order Callable Object imbuing a limited range semantic onto other Callable Objects. More... | |
constexpr quarter_circle_type const | eve::quarter_circle = {} |
Higher-order Callable Object imbuing a limited range semantic onto other Callable Objects. More... | |
constexpr half_circle_type const | eve::half_circle = {} |
Higher-order Callable Object imbuing a limited range standard semantic onto other Callable Objects. More... | |
constexpr callable_arg_ | eve::arg = {} |
Callable object computing the phase angle (in radians). More... | |
constexpr callable_cos_ | eve::cos = {} |
Callable object computing the cosine. More... | |
constexpr callable_cosd_ | eve::cosd = {} |
Callable object computing cosine from an input in degrees. More... | |
constexpr callable_cot_ | eve::cot = {} |
Callable object computing th cotangent. More... | |
constexpr callable_cotd_ | eve::cotd = {} |
Callable object computing cotangent from an input in degrees. More... | |
constexpr callable_cotpi_ | eve::cotpi = {} |
Callable object computing the arc cotangent from an input in \(\pi\) multiples. More... | |
constexpr callable_csc_ | eve::csc = {} |
Callable object computing the cosecant of the input. More... | |
constexpr callable_cscd_ | eve::cscd = {} |
Callable object computing the cosecant from an input in degree. More... | |
constexpr callable_cscpi_ | eve::cscpi = {} |
Callable object computing the cosecant in \(\pi\) multiples. More... | |
constexpr callable_deginrad_ | eve::deginrad = {} |
Callable object multiplying the input by \(\pi/180\). More... | |
constexpr callable_quadrant_ | eve::quadrant = {} |
Callable object computing the quadrant value. More... | |
constexpr callable_radindeg_ | eve::radindeg = {} |
Callable object multiplying the input by \(180/\pi\). More... | |
constexpr callable_radinpi_ | eve::radinpi = {} |
Callable object multiplying the input by \(1/\pi\). More... | |
constexpr callable_rempio2_ | eve::rempio2 = {} |
Callable object computing the remainder of the division by \(\pi/2\). More... | |
constexpr callable_sec_ | eve::sec = {} |
Callable object computing the secant of the input. More... | |
constexpr callable_secd_ | eve::secd = {} |
Callable object computing the secant from an input in degree. More... | |
constexpr callable_secpi_ | eve::secpi = {} |
Callable object computing secant from an input in \(\pi\) multiples. More... | |
constexpr callable_sin_ | eve::sin = {} |
Callable object computing the sine. More... | |
constexpr callable_sinc_ | eve::sinc = {} |
Callable object computing the sine cardinal. More... | |
constexpr callable_sincos_ | eve::sincos = {} |
Callable object computing the simultaneous computation of sine an cosine. More... | |
constexpr callable_sind_ | eve::sind = {} |
Callable object computing the sine from an input in degrees. More... | |
constexpr callable_sindcosd_ | eve::sindcosd = {} |
Callable object computing the simultaneous computation of sine an cosine from an argument in degrees. More... | |
constexpr callable_sinpi_ | eve::sinpi = {} |
Callable object computing the sine rom an input in \(\pi\) multiples. More... | |
constexpr callable_sinpic_ | eve::sinpic = {} |
Callable object computing the normalized cardinal sine. More... | |
constexpr callable_sinpicospi_ | eve::sinpicospi = {} |
Callable object computing the simultaneous computation of sin an cos from an argument in \(\pi\) multiples. More... | |
constexpr callable_tan_ | eve::tan = {} |
Callable object computing the tangent. More... | |
constexpr callable_tand_ | eve::tand = {} |
Callable object computing the tangent from an input in degrees. More... | |
constexpr callable_tanpi_ | eve::tanpi = {} |
Callable object computing the tangent from an input in \(\pi\) multiples. More... | |