Package org.djunits.value
Class MathFunctionsTest
java.lang.Object
org.djunits.value.MathFunctionsTest
Test the math functions.
Copyright (c) 2015-2025 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck(String functionName, DoubleFunction df, FloatFunction ff, double testValue, double expectedResult) Check the result of a double precision Math function.voidTest the math functions.
-
Constructor Details
-
MathFunctionsTest
public MathFunctionsTest()
-
-
Method Details
-
mathFunctionsTest
@Test public void mathFunctionsTest()Test the math functions. -
check
public static void check(String functionName, DoubleFunction df, FloatFunction ff, double testValue, double expectedResult) Check the result of a double precision Math function.- Parameters:
functionName- name of the functiondf- the double function to applyff- the float functio to applytestValue- the value to applyexpectedResult- the expected result value
-