angle

Function angle 

Source
pub fn angle<S: ScalarAd>(x: S) -> S::Real
Expand description

Primal angle.

ยงExamples

use chainrules::angle;
use num_complex::Complex64;

assert!((angle(Complex64::new(3.0, 4.0)) - 0.9272952180016122).abs() < 1e-12);