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