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