pub fn atan2<S>(y: S, x: S) -> Swhere S: ScalarAd<Real = S> + Float,
Primal atan2(y, x) for ordered real scalars.
atan2(y, x)
use chainrules::atan2; assert!((atan2(3.0_f64, 4.0_f64) - 3.0_f64.atan2(4.0_f64)).abs() < 1e-12);