Package org.djutils.complex
Class TestComplexMath
- java.lang.Object
-
- org.djutils.complex.TestComplexMath
-
public class TestComplexMath extends Object
TestComplexMath.java.
Copyright (c) 2020-2023 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
-
-
Constructor Summary
Constructors Constructor Description TestComplexMath()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static doubledoubleAcosh(double x)Copied from Forget Code acosh.static doubledoubleAsinh(double x)Copied from Forget Code asinh.static StringprintComplex(Complex c)voidtestAsinAcosAtan()Test the asin, acos and atan functions.voidtestAsinh()Test the asinh function.voidtestCbrt()Test the cube root function.voidtestExp()Test the exponential function.voidtestLog()Test the natural logarithm function.voidtestSinCosTan()Test the sine, cosine and tangent functions.voidtestSinhCoshTanH()Test the sinh, cosh, tanh functions.voidtestSqrt()Test the square root function.
-
-
-
Method Detail
-
testSqrt
public void testSqrt()
Test the square root function.
-
testCbrt
public void testCbrt()
Test the cube root function.
-
testExp
public void testExp()
Test the exponential function.
-
testLog
public void testLog()
Test the natural logarithm function.
-
testSinCosTan
public void testSinCosTan()
Test the sine, cosine and tangent functions.
-
testSinhCoshTanH
public void testSinhCoshTanH()
Test the sinh, cosh, tanh functions.
-
testAsinAcosAtan
public void testAsinAcosAtan()
Test the asin, acos and atan functions.
-
testAsinh
public void testAsinh()
Test the asinh function.
-
doubleAsinh
public static double doubleAsinh(double x)
Copied from Forget Code asinh.- Parameters:
x- double; the argument- Returns:
- double; the inverse hyperbolic cosine of x
-
doubleAcosh
public static double doubleAcosh(double x)
Copied from Forget Code acosh.- Parameters:
x- double; the argument- Returns:
- double; the inverse hyperbolic cosine of x
-
-