}
// converts the Phasor to a rectangular complex variable - static method
public static Complex toComplex(Phasor ph){
Complex cc = new Complex();
cc.polar(ph.magnitude, ph.phaseInRad);
return cc;
}
// Format a phasor number as a string, 'magnitude''<''phase''deg' - phase in degrees
// Overides java.lang.String.toString()