Function activation_functions::f64::tanh[][src]

pub fn tanh(x: f64) -> f64
Expand description

calculate the tanh to the given f64 number

Examples

let x:f64 = 0.5;
let answer:f64 = tanh(x);
 
println!("tanh({}) => {}",x,answer);