Array Module
functions for working with arrays
Functions and values
Function or value |
Description
|
Full Usage:
solveBisection generator iterationLimit initialGuess targetTolerance toleranceSteps
Parameters:
decimal -> decimal * decimal
iterationLimit : uint
initialGuess : decimal
targetTolerance : TargetTolerance
toleranceSteps : ToleranceSteps
Returns: Solution
|
iteratively solves for a given input using a generator function until the output hits zero or within a set tolerance, optionally relaxing the tolerance until a solution is found note: the generator function should return a tuple of the result and a relevant value (as the result is converging on zero it is not a very relevant value)
|
Full Usage:
solveNewtonRaphson f iterationLimit initialGuess tolerance
Parameters:
decimal -> decimal
iterationLimit : uint
initialGuess : decimal
tolerance : decimal
Returns: Solution
|
use the Newton-Raphson method to find the solution (particularly suitable for calculating the APR)
|
Full Usage:
toStringOrNa a
Parameters:
'a[]
Returns: string
|
concatenates the members of an array into a delimited string or "n/a" if the array is empty or null
|