Header menu logo FSharp.Finance.Personal

Array Module

functions for working with arrays

Functions and values

Function or value Description

solveBisection generator iterationLimit initialGuess targetTolerance toleranceSteps

Full Usage: solveBisection generator iterationLimit initialGuess targetTolerance toleranceSteps

Parameters:
    generator : 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)

generator : decimal -> decimal * decimal
iterationLimit : uint
initialGuess : decimal
targetTolerance : TargetTolerance
toleranceSteps : ToleranceSteps
Returns: Solution

solveNewtonRaphson f iterationLimit initialGuess tolerance

Full Usage: solveNewtonRaphson f iterationLimit initialGuess tolerance

Parameters:
    f : 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)

f : decimal -> decimal
iterationLimit : uint
initialGuess : decimal
tolerance : decimal
Returns: Solution

toStringOrNa a

Full Usage: toStringOrNa a

Parameters:
    a : 'a[]

Returns: string

concatenates the members of an array into a delimited string or "n/a" if the array is empty or null

a : 'a[]
Returns: string

Type something to start searching.