/**
* Calculates the modulus of a Complex Number.<br><br>
*
* The modulus of the complex number is the length of the vector
* representing the complex number on complex plane.
* @memberof Complex
* @instance
* @returns {number} The modulus of the Complex Number
*/
function getModulus() {
return Math.sqrt(this.re ** 2 + this.im ** 2);
}
module.exports = getModulus;