Package org.djutils.complex
Class ComplexMath
java.lang.Object
org.djutils.complex.ComplexMath
ComplexMath.java. Math with complex operands and results.
Copyright (c) 2021-2024 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.
Copyright (c) 2021-2024 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
Modifier and TypeMethodDescriptionstatic Complex
Inverse cosine function of a Complex operand.static Complex
Inverse hyperbolic cosine of a Complex operand.static Complex
Inverse sine function of a Complex operand.static Complex
Inverse hyperbolic sine of a Complex operand.static Complex
Inverse tangent function of a Complex operand.static Complex
Inverse hyperbolic tangent of a Complex operand.static Complex
Principal cube root of a Complex operand.static Complex
Cosine function of Complex operand.static Complex
Hyperbolic cosine function of Complex operand.static Complex
Exponential function of a Complex operand.static Complex
Principal value of the natural logarithm of a Complex operand.static Complex
Sine function of a Complex operand.static Complex
Hyperbolic sine function of a Complex operand.static Complex
Principal square root of a Complex operand.static Complex
Tangent function of a Complex operand.static Complex
Hyperbolic tangent function of a Complex operand.
-
Method Details
-
sqrt
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
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
Exponential function of a Complex operand.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the exponential function applied to the operand
-
ln
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
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
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
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
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
Hyperbolic cosine function of Complex operand.- Parameters:
z
- Complex; the operand- Returns:
- Complex; the result of the cosh function applied to the operand
-
tanh
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
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
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
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
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
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
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
-