atan2

Function atan2 

Source
pub fn atan2<S>(y: S, x: S) -> S
where S: ScalarAd<Real = S> + Float,
Expand description

Primal atan2(y, x) for ordered real scalars.

ยงExamples

use chainrules::atan2;

assert!((atan2(3.0_f64, 4.0_f64) - 3.0_f64.atan2(4.0_f64)).abs() < 1e-12);