From 244f3ea8d9ec096710b21363eaaaffdce8d20b10 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sun, 4 Sep 2022 22:48:29 +0200 Subject: [PATCH] feat: Note that this isn't tested yet. --- .../src/rescript/FunctionRegistry/Library/FR_Danger.res | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_Danger.res b/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_Danger.res index 3dd42efb..16ea77d5 100644 --- a/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_Danger.res +++ b/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_Danger.res @@ -220,7 +220,8 @@ let library = [ ~nameSpace, ~output=EvtArray, ~requiresNamespace=false, - ~examples=[`Danger.integrateFunctionBetweenWithIncrement({|x| x+1}, 1, 10, 1)`], // should be [x^2 + x]1_10 = (10^2 + 10) - (1 + 1) = 110 - 2 = 118 + ~examples=[`Danger.integrateFunctionBetweenWithIncrement({|x| x+1}, 1, 10, 1)`], // should be [x^2/2 + x]1_10 = (50 + 10) - (1 + 1) = 60 - 2 = 58 + // Some testing needed to see where the small deviation comes from. ~definitions=[ FnDefinition.make( ~name="integrateFunctionBetweenWithIncrement",