public class BigComplexMath
extends java.lang.Object
BigComplex
s.Constructor and Description |
---|
BigComplexMath() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigDecimal |
abs(BigComplex x,
java.math.MathContext mathContext)
Calculates the absolute value (also known as magnitude, length or radius) of the given complex number using the specified
MathContext . |
static java.math.BigDecimal |
absSquare(BigComplex x,
java.math.MathContext mathContext)
Calculates the square of the absolute value (also known as magnitude, length or radius) of the given complex number using the specified
MathContext . |
static BigComplex |
acos(BigComplex x,
java.math.MathContext mathContext)
Calculates the arc cosine (inverted cosine) of
BigComplex x in the complex domain. |
static BigComplex |
acot(BigComplex x,
java.math.MathContext mathContext)
Calculates the arc cotangens (inverted cotangens) of
BigComplex x in the complex domain. |
static java.math.BigDecimal |
angle(BigComplex x,
java.math.MathContext mathContext)
Calculates the angle in radians of the given complex number using the specified
MathContext . |
static BigComplex |
asin(BigComplex x,
java.math.MathContext mathContext)
Calculates the arc sine (inverted sine) of
BigComplex x in the complex domain. |
static BigComplex |
atan(BigComplex x,
java.math.MathContext mathContext)
Calculates the arc tangens (inverted tangens) of
BigComplex x in the complex domain. |
static BigComplex |
conjugate(BigComplex x)
Calculates the conjugate of the given complex number using the specified
MathContext . |
static BigComplex |
cos(BigComplex x,
java.math.MathContext mathContext)
Calculates the cosine (cosinus) of
BigComplex x in the complex domain. |
static BigComplex |
exp(BigComplex x,
java.math.MathContext mathContext)
Calculates the natural exponent of
BigComplex x (ex) in the complex domain. |
static BigComplex |
log(BigComplex x,
java.math.MathContext mathContext)
Calculates the natural logarithm of
BigComplex x in the complex domain. |
static BigComplex |
pow(BigComplex x,
BigComplex y,
java.math.MathContext mathContext)
Calculates
BigComplex x to the power of BigComplex y (xy). |
static BigComplex |
pow(BigComplex x,
java.math.BigDecimal y,
java.math.MathContext mathContext)
Calculates
BigComplex x to the power of BigDecimal y (xy). |
static BigComplex |
pow(BigComplex x,
long y,
java.math.MathContext mathContext)
Calculates
BigComplex x to the power of long y (xy). |
static BigComplex |
reciprocal(BigComplex x,
java.math.MathContext mathContext)
Calculates the reciprocal of the given complex number using the specified
MathContext . |
static BigComplex |
root(BigComplex x,
BigComplex n,
java.math.MathContext mathContext)
Calculates the
BigComplex n'th root of BigComplex x (n√x). |
static BigComplex |
root(BigComplex x,
java.math.BigDecimal n,
java.math.MathContext mathContext)
Calculates the
BigDecimal n'th root of BigComplex x (n√x). |
static BigComplex |
sin(BigComplex x,
java.math.MathContext mathContext)
Calculates the sine (sinus) of
BigComplex x in the complex domain. |
static BigComplex |
sqrt(BigComplex x,
java.math.MathContext mathContext)
Calculates the square root of
BigComplex x in the complex domain (√x). |
static BigComplex |
tan(BigComplex x,
java.math.MathContext mathContext)
Calculates the tangens of
BigComplex x in the complex domain. |
public static BigComplex reciprocal(BigComplex x, java.math.MathContext mathContext)
MathContext
.x
- the complex number to calculate the reciprocalmathContext
- the MathContext
used to calculate the resultBigComplex
resultBigComplex.reciprocal(MathContext)
public static BigComplex conjugate(BigComplex x)
MathContext
.x
- the complex number to calculate the conjugateBigComplex
resultBigComplex.conjugate()
public static java.math.BigDecimal abs(BigComplex x, java.math.MathContext mathContext)
MathContext
.x
- the complex number to calculate the absolute valuemathContext
- the MathContext
used to calculate the resultBigComplex
resultBigComplex.abs(MathContext)
public static java.math.BigDecimal absSquare(BigComplex x, java.math.MathContext mathContext)
MathContext
.x
- the complex number to calculate the square of the absolute valuemathContext
- the MathContext
used to calculate the resultBigComplex
resultBigComplex.absSquare(MathContext)
public static java.math.BigDecimal angle(BigComplex x, java.math.MathContext mathContext)
MathContext
.x
- the complex number to calculate the anglemathContext
- the MathContext
used to calculate the resultBigComplex
angle in radiansBigComplex.angle(MathContext)
public static BigComplex exp(BigComplex x, java.math.MathContext mathContext)
BigComplex
x (ex) in the complex domain.
x
- the BigComplex
to calculate the exponent formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex sin(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.
x
- the BigComplex
to calculate the sine formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex cos(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.x
- the BigComplex
to calculate the cosine formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex tan(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.x
- the BigComplex
to calculate the tangens formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex atan(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.
See: Wikipedia: Inverse trigonometric functions (Extension to complex plane)
x
- the BigComplex
to calculate the arc tangens formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex acot(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.
See: Wikipedia: Inverse trigonometric functions (Extension to complex plane)
x
- the BigComplex
to calculate the arc cotangens formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex asin(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.
See: Wikipedia: Inverse trigonometric functions (Extension to complex plane)
x
- the BigComplex
to calculate the arc sine formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex acos(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.
See: Wikipedia: Inverse trigonometric functions (Extension to complex plane)
x
- the BigComplex
to calculate the arc cosine formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex sqrt(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain (√x).
See Wikipedia: Square root (Square root of an imaginary number)
x
- the BigComplex
to calculate the square root formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex log(BigComplex x, java.math.MathContext mathContext)
BigComplex
x in the complex domain.
x
- the BigComplex
to calculate the natural logarithm formathContext
- the MathContext
used for the resultBigComplex
with the precision specified in the mathContext
public static BigComplex pow(BigComplex x, long y, java.math.MathContext mathContext)
BigComplex
x to the power of long
y (xy).
The implementation tries to minimize the number of multiplications of x
(using squares whenever possible).
x
- the BigComplex
value to take to the powery
- the long
value to serve as exponentmathContext
- the MathContext
used for the resultmathContext
public static BigComplex pow(BigComplex x, java.math.BigDecimal y, java.math.MathContext mathContext)
BigComplex
x to the power of BigDecimal
y (xy).x
- the BigComplex
value to take to the powery
- the BigDecimal
value to serve as exponentmathContext
- the MathContext
used for the resultmathContext
public static BigComplex pow(BigComplex x, BigComplex y, java.math.MathContext mathContext)
BigComplex
x to the power of BigComplex
y (xy).x
- the BigComplex
value to take to the powery
- the BigComplex
value to serve as exponentmathContext
- the MathContext
used for the resultmathContext
public static BigComplex root(BigComplex x, java.math.BigDecimal n, java.math.MathContext mathContext)
x
- the BigComplex
value to calculate the n'th rootn
- the BigDecimal
defining the rootmathContext
- the MathContext
used for the resultmathContext
public static BigComplex root(BigComplex x, BigComplex n, java.math.MathContext mathContext)
x
- the BigComplex
value to calculate the n'th rootn
- the BigComplex
defining the rootmathContext
- the MathContext
used for the resultmathContext