Calculates a complex number with the inputted magnitude.
// Returns 6 + 8i (scaled to magnitude 10)const normscl = Chalkboard.comp.magset(Chalkboard.comp.init(3, 4), 10); Copy
// Returns 6 + 8i (scaled to magnitude 10)const normscl = Chalkboard.comp.magset(Chalkboard.comp.init(3, 4), 10);
The complex number
The magnitude to set to
Calculates a complex number with the inputted magnitude.
Example