|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.number.complex.ElementaryFunction
public class ElementaryFunction
This class contains some elementary functions for complex number Complex.
The references for the formulae can be found in the following.
| Constructor Summary | |
|---|---|
ElementaryFunction()
|
|
| Method Summary | |
|---|---|
static Complex |
acos(Complex z)
Inverse of cosine. |
static Complex |
asin(Complex z)
Inverse of sine. |
static Complex |
atan(Complex z)
Inverse of tangent. |
static Complex |
cos(Complex z)
Cosine of a complex number (a + bi). |
static Complex |
cosh(Complex z)
Hyperbolic cosine of a complex number (a + bi). |
static Complex |
exp(Complex z)
Exponential of a complex number (a + bi). |
static Complex |
log(Complex z)
Natural logarithm of a complex number (a + bi). |
static Complex |
pow(Complex z1,
Complex z2)
z1 to the power z2. |
static Complex |
sin(Complex z)
Sine of a complex number (a + bi). |
static Complex |
sinh(Complex z)
Hyperbolic sine of a complex number (a + bi). |
static Complex |
sqrt(Complex z)
Square root of a complex number. |
static Complex |
tan(Complex z)
Tangent of a complex number (a + bi). |
static Complex |
tanh(Complex z)
Hyperbolic tangent of a complex number (a + bi). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementaryFunction()
| Method Detail |
|---|
public static Complex sqrt(Complex z)
z - a complex number
NaN of INFINITYpublic static Complex log(Complex z)
(a + bi).
ln(a + bi) = ln(r exp(i θ)) = ln(r) + i θ
z - a complex number
ln(z)public static Complex exp(Complex z)
(a + bi).
exp(a + bi) = exp(a) * [cos(b) + i sin(b)]
= exp(b)cos(b) + i exp(a)sin(b)
z - a complex number
ez
public static Complex pow(Complex z1,
Complex z2)
z1 to the power z2.
(r exp(i θ)) ^ (a + bi)
= r^a exp(-b θ) (cos(b ln(r) + a θ) + i sin(b ln(r) + a θ))
z1 - first complex numberz2 - second complex number
z1z2public static Complex sin(Complex z)
(a + bi).
sin(a + bi) = sin(a)cosh(b) + i cos(a)sinh(b)
z - a complex number
sin(z)public static Complex cos(Complex z)
(a + bi).
cos(a + bi) = cos(a)cosh(b) - i sin(a)sinh(b)
z - a complex number
cos(z)public static Complex tan(Complex z)
(a + bi).
sin(2a) + i sinh(2a)
tan(a + bi) = ----------------------
cos(2a) + cosh(2b)
z - a complex number
tan(z)public static Complex asin(Complex z)
arcsin(z) = -i ln(iz + sqrt(1 - z2))
z - a complex number
sin-1(z)public static Complex acos(Complex z)
arccos(z) = pi / 2 + i ln(iz + sqrt(1 - z2))
= pi / 2 - arcsin(z)
z - a complex number
cos-1(z)public static Complex atan(Complex z)
i
arctan(z) = --- ( ln ( 1 - iz ) - ln ( 1 + iz) )
2
z - a complex number
tan-1(z)public static Complex sinh(Complex z)
(a + bi).
sinh(a + bi) = sinh(a)cos(b) + i cosh(a)sin(b)
z - a complex number
sinh(z)public static Complex cosh(Complex z)
(a + bi).
cosh(a + bi) = cosh(a)cos(b) + i sinh(a)sin(b)
z - a complex number
cosh(z)public static Complex tanh(Complex z)
(a + bi).
sinh(2a) + i sin(2b)
tanh(a + bi) = ----------------------
cosh(2a) + cos(2b)
z - a complex number
tanh(z)
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||