locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
17 lines (16 loc) • 579 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.asinh = asinh;
function asinh(x) {
// discuss at: https://locutus.io/python/asinh/
// parity verified: Python 3.12
// original by: Kevin van Zonneveld (https://kvz.io)
// note 1: Returns the inverse hyperbolic sine of x
// example 1: asinh(0)
// returns 1: 0
// example 2: asinh(1)
// returns 2: 0.881373587019543
// example 3: asinh(-2)
// returns 3: -1.4436354751788103
return Math.asinh(x);
}