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: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to