Calculates the magnitude (or modulus) of a complex number.
// Returns 5const r = Chalkboard.comp.mag(Chalkboard.comp.init(3, 4)); Copy
// Returns 5const r = Chalkboard.comp.mag(Chalkboard.comp.init(3, 4));
The complex number
Calculates the magnitude (or modulus) of a complex number.
Example