Calculates the magnitude (or modulus) of a complex number.

// Returns 5
const r = Chalkboard.comp.mag(Chalkboard.comp.init(3, 4));