fix: formatting
This commit is contained in:
parent
2fa97c20f7
commit
fd7720b045
|
@ -76,8 +76,14 @@ module Internals = {
|
|||
let internalZero = ReducerInterface_InternalExpressionValue.IEvNumber(0.0)
|
||||
let applyFunctionAtZero = (aLambda, environment, reducer) =>
|
||||
applyFunctionAtPoint(aLambda, internalZero, environment, reducer)
|
||||
@dead let applyFunctionAtFloat = (aLambda, point, environment, reducer) =>
|
||||
applyFunctionAtPoint(aLambda, ReducerInterface_InternalExpressionValue.IEvNumber(point), environment, reducer)
|
||||
@dead
|
||||
let applyFunctionAtFloat = (aLambda, point, environment, reducer) =>
|
||||
applyFunctionAtPoint(
|
||||
aLambda,
|
||||
ReducerInterface_InternalExpressionValue.IEvNumber(point),
|
||||
environment,
|
||||
reducer,
|
||||
)
|
||||
// simplest integral function
|
||||
let integrateFunctionBetweenWithIncrement = (
|
||||
aLambda,
|
||||
|
@ -146,7 +152,7 @@ module Internals = {
|
|||
let xsLengthCandidate = Belt.Float.toInt(Js.Math.round(numIntervals))
|
||||
let xsLength = xsLengthCandidate > 0 ? xsLengthCandidate : 1
|
||||
let increment = (max -. min) /. Belt.Int.toFloat(xsLength)
|
||||
let xs = Belt.Array.makeBy(xsLength +1, i => min +. Belt_Float.fromInt(i) *. increment)
|
||||
let xs = Belt.Array.makeBy(xsLength + 1, i => min +. Belt_Float.fromInt(i) *. increment)
|
||||
// makeBy goes from 0 to (n-1): <https://rescript-lang.org/docs/manual/latest/api/belt/array#makeby>
|
||||
let ysOptions = Belt.Array.map(xs, x => applyFunctionAtFloatToFloatOption(x))
|
||||
let okYs = E.A.R.filterOk(ysOptions)
|
||||
|
|
Loading…
Reference in New Issue
Block a user