Expand description
Implementations of SinCos and
SinCosAssign, traits for computing
the sine and cosine of Floats together.
Functionsยง
- primitive_
float_ sin_ cos - Computes $\sin x$ and $\cos x$, the sine and cosine of a primitive float, together. Using this
function is more accurate than using the default
sin_cosfunction or the ones provided bylibm. - primitive_
float_ sin_ cos_ pi - Computes $\sin(\pi x)$ and $\cos(\pi x)$, the sine and cosine of a primitive float measured in half-turns, together.
- primitive_
float_ sin_ cos_ pi_ rational - Computes $\sin(\pi x)$ and $\cos(\pi x)$, the sine and cosine of a
Rationalmeasured in half-turns, together, returning the results as primitive floats. - primitive_
float_ sin_ cos_ rational - Computes $\sin x$ and $\cos x$, the sine and cosine of a
Rational, together, returning the results as primitive floats. - primitive_
float_ sin_ cos_ with_ period - Computes $\sin(2\pi x/u)$ and $\cos(2\pi x/u)$, the sine and cosine of a primitive float
measured in $u$ths of a turn (so that
u = 360is degrees), together. - primitive_
float_ sin_ cos_ with_ period_ rational - Computes $\sin(2\pi x/u)$ and $\cos(2\pi x/u)$, the sine and cosine of a
Rationalmeasured in $u$ths of a turn (so thatu = 360is degrees), together, returning the results as primitive floats.