Package org.djutils.complex
Class TestComplexMath
- java.lang.Object
-
- org.djutils.complex.TestComplexMath
-
public class TestComplexMath extends Object
TestComplexMath.java.
Copyright (c) 2020-2020 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 double
doubleAcosh(double x)
Copied from Forget Code acosh.static double
doubleAsinh(double x)
Copied from Forget Code asinh.static String
printComplex(Complex c)
void
testAsinAcosAtan()
Test the asin, acos and atan functions.void
testAsinh()
Test the asinh function.void
testCbrt()
Test the cube root function.void
testExp()
Test the exponential function.void
testLog()
Test the natural logarithm function.void
testSinCosTan()
Test the sine, cosine and tangent functions.void
testSinhCoshTanH()
Test the sinh, cosh, tanh functions.void
testSqrt()
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
-
-