Multiply a complex numbers times double.
Multiply a complex numbers times double.
multiply this times r
Multiply two complex numbers.
Multiply two complex numbers.
multiply this times c
Add a complex number plus double.
Add a complex number plus double.
add r to this
Add two complex numbers.
Add two complex numbers.
add complex c to this
Subtract: a complex number minus double.
Subtract: a complex number minus double.
subtract r from this
Subtract two complex numbers.
Subtract two complex numbers.
subtract c from this
Divide a complex numbers div double.
Divide a complex numbers div double.
divide this by r
Divide two complex numbers.
Divide two complex numbers.
divide this by c
Return the absolute value of this complex number.
Return the angle of the complex number as a vector in the re-im plane.
Return the complex conjugate: if z = (a + bi) then z.
Return the complex conjugate: if z = (a + bi) then z.bar = (a - bi).
Compare this complex number with that complex number d.
Compare this complex number with that complex number d.
that complex number
Compare two complex numbers (negative for <, zero for ==, positive for >).
Compare two complex numbers (negative for <, zero for ==, positive for >).
the first complex number to compare
the second complex number to compare
Override equals to determine whether this complex number equals complex c.
Override equals to determine whether this complex number equals complex c.
the complex number to compare with this
Create a complex number from a Double.
Create a complex number from a Double.
the double used to create the complex number
Create a complex number from a Float.
Create a complex number from a Float.
the float used to create the complex number
Create a complex number from an Int.
Create a complex number from an Int.
the integer used to create the complex number
Create a complex number from a Long.
Create a complex number from a Long.
the long used to create the complex number
Must also override hashCode to be be compatible with equals.
Must also override hashCode to be be compatible with equals.
the imaginary part (e.
the imaginary part (e.g., 3.2)
Determine whether this complex number is real (no imaginary part).
Return the maximum of this and that complex numbers.
Return the maximum of this and that complex numbers.
that complex number to compare with this
Return the minimum of this and that complex numbers.
Return the minimum of this and that complex numbers.
that complex number to compare with this
Return the complex number in polar coordinates (radius, angle).
Return the radius of the complex number as a vector in the re-im plane.
the real part (e.
the real part (e.g., 2.1)
Set the format to the newFormat.
Set the format to the newFormat.
the new format String
Convert that/this complex number to a Double.
Convert that/this complex number to a Double.
Convert that/this complex number to a Float.
Convert that/this complex number to a Float.
Convert that/this complex number to an Int.
Convert that/this complex number to an Int.
Convert this complex number to a Long.
Convert this complex number to a Long.
Convert this complex number to a String of the form "a+bi".
Convert this complex number to a String of the form "a+bi".
Convert this complex number to a String of the form "(a, b)".
Compute the unary minus (-).
Raise a complex to the r-th power (a double) using polar coordinates.
Raise a complex to the r-th power (a double) using polar coordinates.
the power/exponent
The
Complex
class is used to represent and operate on complex numbers. Internally, a complex number is represented as two double precision floating point numbers (Double). Externally, two forms are supported:a+bi = 2.1+3.2i via: Complex ("2.1+3.2i"), toString (a, b) = (2.1, 3.2) via: create ("(2.1,=, 3.2)"), toString2
Note: 'i * i = -1'.
the real part (e.g., 2.1)
the imaginary part (e.g., 3.2)