pub fn sincospi<S: ScalarAd>(x: S) -> (S, S)Expand description
Primal sincospi.
ยงExamples
use chainrules::sincospi;
let (s, c) = sincospi(0.25_f64);
assert!((s - (std::f64::consts::FRAC_1_SQRT_2)).abs() < 1e-12);
assert!((c - (std::f64::consts::FRAC_1_SQRT_2)).abs() < 1e-12);