UNPKG

@rayyamhk/complex

Version:

A lightweight and easy-to-use library for you to manipulate complex numbers

17 lines (15 loc) 464 B
"use strict"; /** * Calculates the inverse cotangent of a Complex Number. * The domain of this function is C / { i , -i , 0 }.<br><br> * * If the argument is out of its domain, it returns Complex.NaN. * @memberof Complex * @static * @param {Complex} num - Any Complex Number except i, -i and 0 * @returns {Complex} The result of inverse cotangent function */ function acot(num) { return this.atan(this.inverse(num)); } module.exports = acot;