Package org.djunits.value
Class MathFunctionsTest
- java.lang.Object
-
- org.djunits.value.MathFunctionsTest
-
public class MathFunctionsTest extends Object
Test the math functions.Copyright (c) 2015-2020 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 MathFunctionsTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
check(String functionName, DoubleFunction df, FloatFunction ff, double testValue, double expectedResult)
Check the result of a double precision Math function.void
mathFunctionsTest()
Test the math functions.
-
-
-
Method Detail
-
mathFunctionsTest
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
- String; name of the functiondf
- DoubleFunction; the double function to applyff
- FloatFunction; the float functio to applytestValue
- double; the value to applyexpectedResult
- double; the expected result value
-
-