Create a complex number from polar coordinates
factory Complex.fromPolar(double magnitude, double phase) { return Complex(magnitude * math.cos(phase), magnitude * math.sin(phase)); }