Skip to content

kenany/tanh

Repository files navigation

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.