@rayyamhk/complex
Version:
A lightweight and easy-to-use library for you to manipulate complex numbers
14 lines (12 loc) • 417 B
JavaScript
;
/**
* Calculates the inverse sine of a Complex Number.
* @memberof Complex
* @static
* @param {Complex} num - Any Complex Number
* @returns {Complex} The result of inverse sine function
*/
function asin(num) {
return this.multiply(new this(0, -1), this.log(this.add(this.multiply(new this(0, 1), num), this.pow(this.subtract(this.ONE, this.pow(num, 2)), 0.5))));
}
module.exports = asin;