From 6c04f9bff1b6af68fe6419afc56023261d5f0fff Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 5 Sep 2022 09:10:42 +0200 Subject: [PATCH] fix: change expected output type of integrals --- .../src/rescript/FunctionRegistry/Library/FR_Danger.res | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 11198ef0..a7c1cc25 100644 --- a/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_Danger.res +++ b/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_Danger.res @@ -217,7 +217,7 @@ let library = [ Function.make( ~name="applyFunctionAtZero", ~nameSpace, - ~output=EvtArray, + ~output=EvtNumber, ~requiresNamespace=false, ~examples=[`Danger.applyFunctionAtZero({|x| x+1})`], ~definitions=[ @@ -240,7 +240,7 @@ let library = [ Function.make( ~name="applyFunctionAtPoint", ~nameSpace, - ~output=EvtArray, + ~output=EvtNumber, ~requiresNamespace=false, ~examples=[`Danger.applyFunctionAtPoint({|x| x+1}, 1)`], ~definitions=[ @@ -262,7 +262,7 @@ let library = [ Function.make( ~name="integrateFunctionBetweenWithIncrement", ~nameSpace, - ~output=EvtArray, + ~output=EvtNumber, ~requiresNamespace=false, ~examples=[`Danger.integrateFunctionBetweenWithIncrement({|x| x+1}, 1, 10, 1)`], // should be [x^2/2 + x]1_10 = (100/2 + 10) - (1/2 + 1) = 60 - 1.5 = 58.5 @@ -302,7 +302,7 @@ let library = [ Function.make( ~name="integrateFunctionBetweenWithNumIntervals", ~nameSpace, - ~output=EvtArray, + ~output=EvtNumber, ~requiresNamespace=false, ~examples=[`Danger.integrateFunctionBetweenWithNumIntervals({|x| x+1}, 1, 10, 10)`], // should be [x^2/2 + x]1_10 = (100/2 + 10) - (1/2 + 1) = 60 - 1.5 = 58.5