[−][src]Function js_sys::Math::tanh
pub fn tanh(x: f64) -> f64
The Math.tanh()
function returns the hyperbolic tangent of a number, that is
tanh x = sinh x / cosh x = (e^x - e^-x)/(e^x + e^-x) = (e^2x - 1)/(e^2x + 1)
pub fn tanh(x: f64) -> f64
The Math.tanh()
function returns the hyperbolic tangent of a number, that is
tanh x = sinh x / cosh x = (e^x - e^-x)/(e^x + e^-x) = (e^2x - 1)/(e^2x + 1)