Back to functions

tanh


hyperbolic tangent

For numeric values it returns Math.tanh value. In all other cases it returns a symbolic function. Will polyfill.


Usage: nerdamer("tan(x)")


Parameters

expression x Returns the appropriate value if possible otherwise it returns the function with the simplified expression

EXAMPLES:
var r = nerdamer('tanh(0)').evaluate();
console.log(r.toString());
var t = nerdamer('tanh(x)')
console.log(t.toString());
var u = nerdamer('tan(1)').evaluate()
console.log(u.toString());
OUTPUT:
Back to functions