tan

Function tan 

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

Primal tan.

ยงExamples

use chainrules::tan;

assert!((tan(0.5_f64) - 0.5_f64.tan()).abs() < 1e-12);