tanh

2.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i tanh

Weekly Downloads

4

Version

2.0.0

License

MIT

Unpacked Size

2.62 kB

Total Files

4

Last publish

Collaborators

  • kenan