Function fastapprox::fast::cosfull
source · Expand description
Cosine in radians.
The range reduction technique used here will be hopelessly inaccurate for |x| >> 1000.
Examples
assert_eq!(f32::cos(10.0), -0.8390715);
assert_eq!(fastapprox::fast::cosfull(10.0), -0.83907986);