@rayyamhk/complex
Version:
A lightweight and easy-to-use library for you to manipulate complex numbers
14 lines (12 loc) • 329 B
JavaScript
;
/**
* Calculates the inverse cosine of a Complex Number.
* @memberof Complex
* @static
* @param {Complex} num - Any Complex Number
* @returns {Complex} The result of inverse cosine function
*/
function acos(num) {
return this.subtract(new this(Math.PI / 2), this.asin(num));
}
module.exports = acos;