Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
sidl.DoubleComplex
public class DoubleComplex
extends java.lang.Object
implements java.io.Serializable, Cloneable
DoubleComplex
contains inner classes that
provide holder and array support for standard Java primitive
types.
Nested Class Summary | |
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
Field Summary | |
static String |
|
Constructor Summary | |
| |
| |
| |
|
Method Summary | |
static double |
|
static DoubleComplex |
|
static DoubleComplex |
|
static double |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
boolean |
|
boolean |
|
static DoubleComplex |
|
int |
|
double |
|
static double |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
double |
|
static double |
|
void |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
static DoubleComplex |
|
static DoubleComplex |
|
DoubleComplex |
|
String |
|
static DoubleComplex |
|
public static String suffix
String used in converting DoubleComplex to String. Default is "i", but sometimes "j" is desired. Note that this is set for the class, not for a particular instance of a DoubleComplex.
public DoubleComplex()
Constructs a DoubleComplex equal to zero.
public DoubleComplex(double re)
Constructs a DoubleComplex with a zero imaginary part.
- Parameters:
re
- A double value equal to the real part of DoubleComplex object.
public DoubleComplex(double re, double im)
Constructs a DoubleComplex with real and imaginary parts given by the input arguments.
- Parameters:
re
- A double value equal to the real part of the DoubleComplex object.im
- A double value equal to the imaginary part of the DoubleComplex object.
public DoubleComplex(DoubleComplex z)
Constructs a DoubleComplex equal to the argument.
- Parameters:
z
- A DoubleComplex object If z is null then a NullPointerException is thrown.
public static double abs(DoubleComplex z)
Returns the absolute value (modulus) of a DoubleComplex, |z|.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A double value equal to the absolute value of the argument.
public static DoubleComplex acos(DoubleComplex z)
Returns the inverse cosine (arc cosine) of a DoubleComplex, with branch cuts outside the interval [-1,1] along the real axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to inverse (arc) cosine of the argument. The real part of the result is in the interval [0,pi].
public static DoubleComplex acosh(DoubleComplex z)
Returns the inverse hyperbolic cosine (arc cosh) of a DoubleComplex, with a branch cut at values less than one along the real axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to inverse (arc) hyperbolic cosine of the argument. The real part of the result is non-negative and its imaginary part is in the interval [-i*pi,i*pi].
public static double argument(DoubleComplex z)
Returns the argument (phase) of a DoubleComplex, in radians, with a branch cut along the negative real axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A double value equal to the argument (or phase) of a DoubleComplex. It is in the interval [-pi,pi].
public static DoubleComplex asin(DoubleComplex z)
Returns the inverse sine (arc sine) of a DoubleComplex, with branch cuts outside the interval [-1,1] along the real axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to inverse (arc) sine of the argument. The real part of the result is in the interval [-pi/2,+pi/2].
public static DoubleComplex asinh(DoubleComplex z)
Returns the inverse hyperbolic sine (arc sinh) of a DoubleComplex, with a branch cuts outside the interval [-i,i].
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to inverse (arc) hyperbolic sine of the argument. Its imaginary part is in the interval [-i*pi/2,i*pi/2].
public static DoubleComplex atan(DoubleComplex z)
Returns the inverse tangent (arc tangent) of a DoubleComplex, with branch cuts outside the interval [-i,i] along the imaginary axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to inverse (arc) tangent of the argument. Its real part is in the interval [-pi/2,pi/2].
public static DoubleComplex atanh(DoubleComplex z)
Returns the inverse hyperbolic tangent (arc tanh) of a DoubleComplex, with a branch cuts outside the interval [-1,1] on the real axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to inverse (arc) hyperbolic tangent of the argument. The imaginary part of the result is in the interval [-i*pi/2,i*pi/2].
public static DoubleComplex conjugate(DoubleComplex z)
Returns the complex conjugate of a DoubleComplex object.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to complex conjugate of z.
public static DoubleComplex cos(DoubleComplex z)
Returns the cosine of a DoubleComplex.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to cosine of the argument.
public static DoubleComplex cosh(DoubleComplex z)
Returns the hyperbolic cosh of a DoubleComplex.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to the hyperbolic cosine of the argument.
public boolean equals(Object obj)
Compares this object against the specified object. Note: To be useful in hashtables this method considers two NaN double values to be equal. This is not according to IEEE specification
- Parameters:
obj
- The object to compare with.
- Returns:
- True if the objects are the same; false otherwise.
public boolean equals(DoubleComplex z)
Compares with another DoubleComplex. Note: To be useful in hashtables this method considers two NaN double values to be equal. This is not according to IEEE specification.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- True if the real and imaginary parts of this object are equal to their counterparts in the argument; false, otherwise.
public static DoubleComplex exp(DoubleComplex z)
Returns the exponential of a DoubleComplex z, exp(z).
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to exponential of the argument.
public int hashCode()
Returns a hashcode for this DoubleComplex.
- Returns:
- A hash code value for this object.
public double imag()
Returns the imaginary part of a DoubleComplex object.
- Parameters:
- Returns:
- The imaginary part of z.
public static double imag(DoubleComplex z)
Returns the imaginary part of a DoubleComplex object.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- The imaginary part of z.
public static DoubleComplex log(DoubleComplex z)
Returns the logarithm of a DoubleComplex z, with a branch cut along the negative real axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- Newly constructed DoubleComplex initialized to logarithm of the argument. Its imaginary part is in the interval [-i*pi,i*pi].
public DoubleComplex minus(double y)
Subtracts a double from this DoubleComplex and returns the difference, this-y.
- Parameters:
y
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to this-y.
public static DoubleComplex minus(double x, DoubleComplex y)
Returns the difference of a double and a DoubleComplex object, x-y.
- Parameters:
x
- A double value.y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x-y..
public DoubleComplex minus(DoubleComplex y)
Returns the difference of this DoubleComplex object and another DoubleComplex object, this-y.
- Parameters:
y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to this-y.
public static DoubleComplex minus(DoubleComplex x, double y)
Returns the difference of a DoubleComplex object and a double, x-y.
- Parameters:
x
- A DoubleComplex object.y
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to x-y.
public static DoubleComplex minus(DoubleComplex x, DoubleComplex y)
Returns the difference of two DoubleComplex objects, x-y.
- Parameters:
x
- A DoubleComplex object.y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x-y.
public DoubleComplex minusReverse(double x)
Returns the difference of this DoubleComplex object and a double, this-y.
- Parameters:
- Returns:
- A newly constructed DoubleComplex initialized to x-this.
public static DoubleComplex negative(DoubleComplex z)
Returns the negative of a DoubleComplex object, -z.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to the negative of the argument.
public DoubleComplex over(double y)
Returns this DoubleComplex object divided by double, this/y.
- Parameters:
y
- The denominator, a double.
- Returns:
- A newly constructed DoubleComplex initialized to x/y.
public static DoubleComplex over(double x, DoubleComplex y)
Returns a double divided by a DoubleComplex object, x/y.
- Parameters:
x
- A double value.y
- The denominator, a DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x/y.
public DoubleComplex over(DoubleComplex y)
Returns this DoubleComplex object divided by another DoubleComplex object, this/y.
- Parameters:
y
- The denominator, a DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x/y.
public static DoubleComplex over(DoubleComplex x, double y)
Returns DoubleComplex object divided by a double, x/y.
- Parameters:
x
- The numerator, a DoubleComplex object.y
- The denominator, a double.
- Returns:
- A newly constructed DoubleComplex initialized to x/y.
public static DoubleComplex over(DoubleComplex x, DoubleComplex y)
Returns DoubleComplex object divided by a DoubleComplex object, x/y.
- Parameters:
x
- The numerator, a DoubleComplex object.y
- The denominator, a DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x/y.
public DoubleComplex overReverse(double x)
Returns a double dividied by this DoubleComplex object, x/this.
- Parameters:
x
- The numerator, a double.
- Returns:
- A newly constructed DoubleComplex initialized to x/this.
public DoubleComplex plus(double y)
Returns the sum of this DoubleComplex a double, this+y.
- Parameters:
y
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to this+y.
public static DoubleComplex plus(double x, DoubleComplex y)
Returns the sum of a double and a DoubleComplex, x+y.
- Parameters:
x
- A double value.y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x+y.
public DoubleComplex plus(DoubleComplex y)
Returns the sum of this DoubleComplex and another DoubleComplex, this+y.
- Parameters:
y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to this+y.
public static DoubleComplex plus(DoubleComplex x, double y)
Returns the sum of a DoubleComplex and a double, x+y.
- Parameters:
x
- A DoubleComplex object.y
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to x+y.
public static DoubleComplex plus(DoubleComplex x, DoubleComplex y)
Returns the sum of two DoubleComplex objects, x+y.
- Parameters:
x
- A DoubleComplex object.y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x+y.
public DoubleComplex plusReverse(double x)
Returns the sum of this DoubleComplex and a double, x+this.
- Parameters:
x
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to x+this.
public static DoubleComplex pow(DoubleComplex z, double x)
Returns the DoubleComplex z raised to the x power, with a branch cut for the first parameter (z) along the negative real axis.
- Parameters:
z
- A DoubleComplex object.x
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to z to the power x.
public static DoubleComplex pow(DoubleComplex x, DoubleComplex y)
Returns the DoubleComplex x raised to the DoubleComplex y power.
- Parameters:
x
- A DoubleComplex object.y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to xy.
public double real()
Returns the real part of a DoubleComplex object.
- Returns:
- The real part of z.
public static double real(DoubleComplex z)
Returns the real part of a DoubleComplex object.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- The real part of z.
public void set(double real, double imag)
Set the real and imaginary parts of the DoubleComplex object.
public static DoubleComplex sin(DoubleComplex z)
Returns the sine of a DoubleComplex.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to sine of the argument.
public static DoubleComplex sinh(DoubleComplex z)
Returns the hyperbolic sine of a DoubleComplex.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to hyperbolic sine of the argument.
public static DoubleComplex sqrt(DoubleComplex z)
Returns the square root of a DoubleComplex, with a branch cut along the negative real axis.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to square root of z. Its real part is non-negative.
public static DoubleComplex tan(DoubleComplex z)
Returns the tangent of a DoubleComplex.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to tangent of the argument.
public static DoubleComplex tanh(DoubleComplex z)
Returns the hyperbolic tanh of a DoubleComplex.
- Parameters:
z
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to the hyperbolic tangent of the argument.
public DoubleComplex times(double y)
Returns the product of this DoubleComplex object and a double, this*y.
- Parameters:
y
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to this*y.
public static DoubleComplex times(double x, DoubleComplex y)
Returns the product of a double and a DoubleComplex object, x*y.
- Parameters:
x
- A double value.y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x*y.
public DoubleComplex times(DoubleComplex y)
Returns the product of this DoubleComplex object and another DoubleComplex object, this*y.
- Parameters:
y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to this*y.
public static DoubleComplex times(DoubleComplex x, double y)
Returns the product of a DoubleComplex object and a double, x*y.
- Parameters:
x
- A DoubleComplex object.y
- A double value.
- Returns:
- A newly constructed DoubleComplex initialized to x*y.
public static DoubleComplex times(DoubleComplex x, DoubleComplex y)
Returns the product of two DoubleComplex objects, x*y.
- Parameters:
x
- A DoubleComplex object.y
- A DoubleComplex object.
- Returns:
- A newly constructed DoubleComplex initialized to x*y.
public DoubleComplex timesReverse(double x)
Returns the product of a double and this DoubleComplex, x*this.
- Parameters:
- Returns:
- A newly constructed DoubleComplex initialized to x*this.
public String toString()
Returns a String representation for the specified DoubleComplex.
- Returns:
- A String representation for this object.
public static DoubleComplex valueOf(String s) throws NumberFormatException
Parses a string into a DoubleComplex.
- Parameters:
s
- The string to be parsed.
- Returns:
- A newly constructed DoubleComplex initialized to the value represented by the string argument.