Class MathFunctionsTest

java.lang.Object
org.djunits.value.MathFunctionsTest

public class MathFunctionsTest extends Object
Test the math functions.

Copyright (c) 2015-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Peter Knoppers
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    check(String functionName, org.djunits.value.vdouble.function.DoubleFunction df, org.djunits.value.vfloat.function.FloatFunction ff, double testValue, double expectedResult)
    Check the result of a double precision Math function.
    void
    Test the math functions.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MathFunctionsTest

      public MathFunctionsTest()
  • Method Details

    • mathFunctionsTest

      @Test public void mathFunctionsTest()
      Test the math functions.
    • check

      public static void check(String functionName, org.djunits.value.vdouble.function.DoubleFunction df, org.djunits.value.vfloat.function.FloatFunction ff, double testValue, double expectedResult)
      Check the result of a double precision Math function.
      Parameters:
      functionName - String; name of the function
      df - DoubleFunction; the double function to apply
      ff - FloatFunction; the float functio to apply
      testValue - double; the value to apply
      expectedResult - double; the expected result value