Package org.djutils.math.functions
Class SumTest
java.lang.Object
org.djutils.math.functions.SumTest
Test the Sum class.
Copyright (c) 2024-2025 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, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckOneValue(double expectedResult, double x, MathFunction f) Check that the result is as expected.voidTest the Sum class.
-
Constructor Details
-
SumTest
public SumTest()
-
-
Method Details
-
sumClassTest
Test the Sum class. -
checkOneValue
Check that the result is as expected.- Parameters:
expectedResult- the expected resultx- the value of x to put inf- the Function to use to convert x to the actual result
-