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:
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

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

Type something to start searching.