There is a factory constructor:

Complex.ofReal(double)

For completeness I think we should add:

Complex.ofImaginary(double)


We also have negate() as a helper. I think the following are also useful:

Complex multiplyI()
Complex multiplyNegativeI()

These two operations appear a lot in the formulas for the trigonomic functions.

They essentially just swap the real and imaginary parts and update the sign 
appropriately.

Alex



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to