Class TestComplexMath

java.lang.Object
org.djutils.complex.TestComplexMath

public class TestComplexMath extends Object
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.
Author:
Alexander Verbraeck, Peter Knoppers
  • 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

      public static String printComplex(Complex c)
      Parameters:
      c - Complex;
      Returns:
      String