Skip to content

kenany/sech

Repository files navigation

sech

Calculate the hyperbolic secant of a number.

Example

const sech = require('sech');

sech(Math.PI);
// => 0.08626673833405443

Installation

$ npm install sech

API

const sech = require('sech');

sech(x)

Given a Number x, returns the hyperbolic secant of x as a Number.