|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.ihmc.utilities.math.dataStructures.ComplexNumber
public class ComplexNumber
Complex implements a complex number and defines complex arithmetic and mathematical functions Last Updated February 27, 2001 Copyright 1997-2001
Constructor Summary | |
---|---|
ComplexNumber(ComplexNumber complexNumber)
|
|
ComplexNumber(double real,
double imag)
Constructs the complex number z = u + i*v |
Method Summary | |
---|---|
double |
angle()
Argument of this Complex number (the angle in radians with the x-axis in polar coordinates). |
ComplexNumber |
changeSign()
Negative of this ComplexNumber (chs stands for change sign). |
ComplexNumber |
conj()
Complex conjugate of this Complex number (the conjugate of x+i*y is x-i*y). |
ComplexNumber |
cos()
Cosine of this ComplexNumber (doesn't change this ComplexNumber). |
ComplexNumber |
cosh()
Hyperbolic cosine of this ComplexNumber (doesn't change this ComplexNumber). |
ComplexNumber |
dividedBy(ComplexNumber w)
Division of ComplexNumbers (doesn't change this ComplexNumber). |
boolean |
epsilonEquals(ComplexNumber complexNumber,
double epsilon)
|
boolean |
epsilonEquals(double realNumber,
double epsilon)
|
ComplexNumber |
exp()
ComplexNumber exponential (doesn't change this ComplexNumber). |
double |
imag()
imag part of this Complex number (the y-coordinate in rectangular coordinates). |
ComplexNumber |
log()
Principal branch of the ComplexNumber logarithm of this ComplexNumber. |
double |
magnitude()
Modulus of this Complex number (the distance from the origin in polar coordinates). |
double |
magnitudeSquared()
|
ComplexNumber |
minus(ComplexNumber w)
Subtraction of ComplexNumbers (doesn't change this ComplexNumber). |
ComplexNumber |
minus(double d)
|
ComplexNumber |
plus(ComplexNumber w)
Addition of ComplexNumbers (doesn't change this ComplexNumber). |
ComplexNumber |
plus(double d)
|
double |
real()
Real part of this Complex number (the x-coordinate in rectangular coordinates). |
ComplexNumber |
sin()
Sine of this ComplexNumber (doesn't change this ComplexNumber). |
ComplexNumber |
sinh()
Hyperbolic sine of this ComplexNumber (doesn't change this ComplexNumber). |
ComplexNumber |
sqrt()
ComplexNumber square root (doesn't change this ComplexNumber). |
ComplexNumber |
tan()
Tangent of this ComplexNumber (doesn't change this ComplexNumber). |
ComplexNumber |
times(ComplexNumber w)
ComplexNumber multiplication (doesn't change this ComplexNumber). |
ComplexNumber |
times(double w)
ComplexNumber multiplication by a real number (doesn't change this ComplexNumber). |
java.lang.String |
toString()
String representation of this ComplexNumber. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComplexNumber(double real, double imag)
u
- Real partv
- imag partpublic ComplexNumber(ComplexNumber complexNumber)
Method Detail |
---|
public double real()
public double imag()
public double magnitude()
public double magnitudeSquared()
public double angle()
public ComplexNumber conj()
public ComplexNumber plus(ComplexNumber w)
w
- is the number to add.
public ComplexNumber plus(double d)
public ComplexNumber minus(ComplexNumber w)
w
- is the number to subtract.
public ComplexNumber minus(double d)
public ComplexNumber times(ComplexNumber w)
w
- is the number to multiply by.
public ComplexNumber times(double w)
w
- is the number to multiply by.
public ComplexNumber dividedBy(ComplexNumber w)
w
- is the number to divide by
public ComplexNumber exp()
public ComplexNumber log()
public ComplexNumber sqrt()
public ComplexNumber sin()
public ComplexNumber cos()
public ComplexNumber sinh()
public ComplexNumber cosh()
public ComplexNumber tan()
public ComplexNumber changeSign()
public boolean epsilonEquals(double realNumber, double epsilon)
public boolean epsilonEquals(ComplexNumber complexNumber, double epsilon)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |