tanh
v2.0.0
Published
Calculate the hyperbolic tangent of a number
Downloads
14
Readme
tanh
Calculate the hyperbolic tangent of a number.
Example
const tanh = require('tanh');
tanh(1);
// => 0.7615941559557649
Installation
$ npm install tanh
API
const tanh = require('tanh');
tanh(x)
Given a Number x
, returns the hyperbolic tangent of x
as a Number.