csch
Compute the hyperbolic cosecant of a number.
Usage
var csch = require( '@stdlib/math/base/special/csch' );
csch( x )
Computes the hyperbolic cosecant of x
.
var v = csch( 0.0 );
// returns Infinity
v = csch( 2.0 );
// returns ~0.2757
v = csch( -2.0 );
// returns ~-0.2757
v = csch( NaN );
// returns NaN
Examples
var linspace = require( '@stdlib/array/base/linspace' );
var csch = require( '@stdlib/math/base/special/csch' );
var x = linspace( -5.0, 5.0, 100 );
var i;
for ( i = 0; i < x.length; i++ ) {
console.log( csch( x[ i ] ) );
}