Package org.djutils.complex
Class ComplexMath
- java.lang.Object
-
- org.djutils.complex.ComplexMath
-
public final class ComplexMath extends Object
ComplexMath.java. Math with complex operands and results.
Copyright (c) 2021-2021 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Complex
acos(Complex z)
Inverse cosine function of a Complex operand.static Complex
acosh(Complex z)
Inverse hyperbolic cosine of a Complex operand.static Complex
asin(Complex z)
Inverse sine function of a Complex operand.static Complex
asinh(Complex z)
Inverse hyperbolic sine of a Complex operand.static Complex
atan(Complex z)
Inverse tangent function of a Complex operand.static Complex
atanh(Complex z)
Inverse hyperbolic tangent of a Complex operand.static Complex
cbrt(Complex z)
Principal cube root of a Complex operand.static Complex
cos(Complex z)
Cosine function of Complex operand.static Complex
cosh(Complex z)
Hyperbolic cosine function of Complex operand.static Complex
exp(Complex z)
Exponential function of a Complex operand.static Complex
ln(Complex z)
Principal value of the natural logarithm of a Complex operand.static Complex
sin(Complex z)
Sine function of a Complex operand.static Complex
sinh(Complex z)
Hyperbolic sine function of a Complex operand.static Complex
sqrt(Complex z)
Principal square root of a Complex operand.static Complex
tan(Complex z)
Tangent function of a Complex operand.static Complex
tanh(Complex z)
Hyperbolic tangent function of a Complex operand.
-
-
-
Method Detail
-
sqrt
public static Complex sqrt(Complex z)
Principal square root of a Complex operand. The principal square root of a complex number has a non-negative real component.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the principal square root of the operand
-
cbrt
public static Complex cbrt(Complex z)
Principal cube root of a Complex operand. The principal cube root of a complex number has the most positive. real component.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the principal cube root of the operand
-
exp
public static Complex exp(Complex z)
Exponential function of a Complex operand.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the exponential function applied to the operand
-
ln
public static Complex ln(Complex z)
Principal value of the natural logarithm of a Complex operand. See Wikipedia Complex logarithm.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the principal value of the natural logarithm of the Complex operand
-
sin
public static Complex sin(Complex z)
Sine function of a Complex operand. See ProofWiki Sine of Complex Number.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the sine function applied to the operand
-
cos
public static Complex cos(Complex z)
Cosine function of Complex operand. See ProofWiki Cosine of Complex Number.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the cosine function applied to the operand
-
tan
public static Complex tan(Complex z)
Tangent function of a Complex operand. See ProofWiki Tangent of Complex Number.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the tangent function applied to the operand
-
sinh
public static Complex sinh(Complex z)
Hyperbolic sine function of a Complex operand.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the sinh function applied to the operand
-
cosh
public static Complex cosh(Complex z)
Hyperbolic cosine function of Complex operand.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the cosh function applied to the operand
-
tanh
public static Complex tanh(Complex z)
Hyperbolic tangent function of a Complex operand. Based on ProofWiki: Hyperbolic Tangent of Complex Number, Formulation 4.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the tanh function applied to the operand
-
asin
public static Complex asin(Complex z)
Inverse sine function of a Complex operand. Derived from NetBSD Complex casin.c.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the asin function applied to the operand
-
acos
public static Complex acos(Complex z)
Inverse cosine function of a Complex operand. Derived from NetBSD Complex cacos.c.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the acos function applied to the operand
-
atan
public static Complex atan(Complex z)
Inverse tangent function of a Complex operand. Derived from NetBSD Complex catan.c.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the atan function applied to the operand
-
asinh
public static Complex asinh(Complex z)
Inverse hyperbolic sine of a Complex operand.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the asinh function applied to the operand
-
acosh
public static Complex acosh(Complex z)
Inverse hyperbolic cosine of a Complex operand.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the acosh function applied to the operand
-
atanh
public static Complex atanh(Complex z)
Inverse hyperbolic tangent of a Complex operand. Derived from NetBSD Complex catanh.c.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the atanh function applied to the operand
-
-