pub fn cospi(x: f64) -> f64
Compute $\cos(\pi x)$ more accurately than cos(pi*x), especially for large x (f64).
cos(pi*x)
x
If x is infinite or NAN, return NAN.