fix: change expected output type of integrals
This commit is contained in:
parent
e73ffaa10a
commit
6c04f9bff1
|
@ -217,7 +217,7 @@ let library = [
|
||||||
Function.make(
|
Function.make(
|
||||||
~name="applyFunctionAtZero",
|
~name="applyFunctionAtZero",
|
||||||
~nameSpace,
|
~nameSpace,
|
||||||
~output=EvtArray,
|
~output=EvtNumber,
|
||||||
~requiresNamespace=false,
|
~requiresNamespace=false,
|
||||||
~examples=[`Danger.applyFunctionAtZero({|x| x+1})`],
|
~examples=[`Danger.applyFunctionAtZero({|x| x+1})`],
|
||||||
~definitions=[
|
~definitions=[
|
||||||
|
@ -240,7 +240,7 @@ let library = [
|
||||||
Function.make(
|
Function.make(
|
||||||
~name="applyFunctionAtPoint",
|
~name="applyFunctionAtPoint",
|
||||||
~nameSpace,
|
~nameSpace,
|
||||||
~output=EvtArray,
|
~output=EvtNumber,
|
||||||
~requiresNamespace=false,
|
~requiresNamespace=false,
|
||||||
~examples=[`Danger.applyFunctionAtPoint({|x| x+1}, 1)`],
|
~examples=[`Danger.applyFunctionAtPoint({|x| x+1}, 1)`],
|
||||||
~definitions=[
|
~definitions=[
|
||||||
|
@ -262,7 +262,7 @@ let library = [
|
||||||
Function.make(
|
Function.make(
|
||||||
~name="integrateFunctionBetweenWithIncrement",
|
~name="integrateFunctionBetweenWithIncrement",
|
||||||
~nameSpace,
|
~nameSpace,
|
||||||
~output=EvtArray,
|
~output=EvtNumber,
|
||||||
~requiresNamespace=false,
|
~requiresNamespace=false,
|
||||||
~examples=[`Danger.integrateFunctionBetweenWithIncrement({|x| x+1}, 1, 10, 1)`],
|
~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
|
// 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(
|
Function.make(
|
||||||
~name="integrateFunctionBetweenWithNumIntervals",
|
~name="integrateFunctionBetweenWithNumIntervals",
|
||||||
~nameSpace,
|
~nameSpace,
|
||||||
~output=EvtArray,
|
~output=EvtNumber,
|
||||||
~requiresNamespace=false,
|
~requiresNamespace=false,
|
||||||
~examples=[`Danger.integrateFunctionBetweenWithNumIntervals({|x| x+1}, 1, 10, 10)`],
|
~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
|
// should be [x^2/2 + x]1_10 = (100/2 + 10) - (1/2 + 1) = 60 - 1.5 = 58.5
|
||||||
|
|
Loading…
Reference in New Issue
Block a user