@Immutable public static final class Complex.Polar extends Complex
Complex.Cartesian, Complex.Polar
Modifier and Type | Method and Description |
---|---|
double |
abs()
Computes the absolute value of this complex number.
|
Complex |
acos()
Computes the inverse cosine of this complex number.
|
Complex |
add(Complex complex)
Adds an other complex number.
|
double |
angle()
Returns the angle.
|
double |
argument()
Computes the argument of this complex number.
|
Complex |
asin()
Computes the inverse sine of this complex number.
|
Complex |
atan()
Computes the inverse tangent of this complex number.
|
Complex |
conjugate()
Returns the conjugate of this complex number.
|
Complex |
cos()
Computes the cosine of this complex number.
|
Complex |
cosh()
Computes the hyperbolic cosine of this complex number.
|
Complex |
divide(Complex complex)
Divides by an other complex number.
|
boolean |
equals(Object object) |
Complex |
exp()
Computes the exponential function of this complex number.
|
int |
hashCode() |
double |
imaginary()
Returns the imaginary part.
|
boolean |
isCartesian()
Asks if this is a cartesian representation.
|
boolean |
isInfinite()
Asks if this is an infinite number.
|
boolean |
isNaN()
Asks if this is not a number (NaN).
|
boolean |
isPolar()
Asks if this is a polar representation.
|
Complex |
log()
Computes the natural logarithm of this complex number.
|
double |
magnitude()
Returns the magnitude.
|
Complex |
multiply(Complex complex)
Multiplies with an other complex number.
|
Complex |
negate()
Negates this number.
|
Complex |
pow(Complex complex)
Computes this complex number raised at the power of an other.
|
double |
real()
Returns the real part.
|
int |
signum()
Computes the signum function of this complex number.
|
Complex |
sin()
Computes the sine of this complex number.
|
Complex |
sinh()
Computes the hyperbolic sine of this complex number.
|
Complex |
sqrt()
Computes the square root of this complex number.
|
Complex |
subtract(Complex complex)
Subtracts an other complex number.
|
Complex |
tan()
Computes the tangent of this complex number.
|
Complex |
tanh()
Computes the hyperbolic tangent of this complex number.
|
Complex.Cartesian |
toCartesian()
Returns a cartesian representation of this.
|
String |
toHexString()
Returns an hexadecimal representation of this number.
|
Complex.Polar |
toPolar()
Returns a polar representation of this.
|
String |
toString() |
public double abs()
public Complex acos()
public double angle()
public double argument()
public Complex asin()
public Complex atan()
public Complex conjugate()
public Complex cos()
public Complex cosh()
public Complex exp()
public double imaginary()
public boolean isCartesian()
isCartesian
in class Complex
public boolean isInfinite()
isInfinite
in class Complex
public boolean isNaN()
public boolean isPolar()
public Complex log()
public double magnitude()
public Complex negate()
public Complex pow(Complex complex)
public double real()
public int signum()
public Complex sin()
public Complex sinh()
public Complex sqrt()
public Complex tan()
public Complex tanh()
public Complex.Cartesian toCartesian()
toCartesian
in class Complex
public String toHexString()
toHexString
in class Complex
public Complex.Polar toPolar()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.