fix: no small integration error

This commit is contained in:
NunoSempere 2022-09-05 08:41:33 +02:00
parent 244f3ea8d9
commit abad453523

View File

@ -220,8 +220,9 @@ let library = [
~nameSpace, ~nameSpace,
~output=EvtArray, ~output=EvtArray,
~requiresNamespace=false, ~requiresNamespace=false,
~examples=[`Danger.integrateFunctionBetweenWithIncrement({|x| x+1}, 1, 10, 1)`], // should be [x^2/2 + x]1_10 = (50 + 10) - (1 + 1) = 60 - 2 = 58 ~examples=[`Danger.integrateFunctionBetweenWithIncrement({|x| x+1}, 1, 10, 1)`],
// Some testing needed to see where the small deviation comes from. // should be [x^2/2 + x]1_10 = (100/2 + 10) - (1/2 + 1) = 60 - 1.5 = 58.5
// https://www.wolframalpha.com/input?i=integrate+x%2B1+from+1+to+10
~definitions=[ ~definitions=[
FnDefinition.make( FnDefinition.make(
~name="integrateFunctionBetweenWithIncrement", ~name="integrateFunctionBetweenWithIncrement",