Package org.djutils.math.complex
Class ComplexMath
java.lang.Object
org.djutils.math.complex.ComplexMath
ComplexMath.java. Math with complex operands and results. 
Copyright (c) 2021-2025 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-2025 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 ComplexInverse cosine function of a Complex operand.static ComplexInverse hyperbolic cosine of a Complex operand.static ComplexInverse sine function of a Complex operand.static ComplexInverse hyperbolic sine of a Complex operand.static ComplexInverse tangent function of a Complex operand.static ComplexInverse hyperbolic tangent of a Complex operand.static ComplexPrincipal cube root of a Complex operand.static ComplexCosine function of Complex operand.static ComplexHyperbolic cosine function of Complex operand.static ComplexExponential function of a Complex operand.static ComplexPrincipal value of the natural logarithm of a Complex operand.static ComplexSine function of a Complex operand.static ComplexHyperbolic sine function of a Complex operand.static ComplexPrincipal square root of a Complex operand.static ComplexTangent function of a Complex operand.static ComplexHyperbolic 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- the operand- Returns:
 - 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- the operand- Returns:
 - the principal cube root of the operand
 
 - 
exp
Exponential function of a Complex operand.- Parameters:
 z- the operand- Returns:
 - 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- the operand- Returns:
 - 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- the operand- Returns:
 - the result of the sine function applied to the operand
 
 - 
cos
Cosine function of Complex operand. See ProofWiki Cosine of Complex Number.- Parameters:
 z- the operand- Returns:
 - 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- the operand- Returns:
 - the result of the tangent function applied to the operand
 
 - 
sinh
Hyperbolic sine function of a Complex operand.- Parameters:
 z- the operand- Returns:
 - the result of the sinh function applied to the operand
 
 - 
cosh
Hyperbolic cosine function of Complex operand.- Parameters:
 z- the operand- Returns:
 - 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- the operand- Returns:
 - 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- the operand- Returns:
 - 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- the operand- Returns:
 - 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- the operand- Returns:
 - the result of the atan function applied to the operand
 
 - 
asinh
Inverse hyperbolic sine of a Complex operand.- Parameters:
 z- the operand- Returns:
 - the result of the asinh function applied to the operand
 
 - 
acosh
Inverse hyperbolic cosine of a Complex operand.- Parameters:
 z- the operand- Returns:
 - 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- the operand- Returns:
 - the result of the atanh function applied to the operand
 
 
 -