Header menu logo bristlecone

Simple Module

Functions and values

Function or value Description

rungeKutta4Variable currentStep steps t x f tt xx

Full Usage: rungeKutta4Variable currentStep steps t x f tt xx

Parameters:
    currentStep : float
    steps : float list
    t : float
    x : float
    f : float -> float -> float
    tt : float list
    xx : float list

Returns: float list * float list

4th order runge-kutta solver that can handle (in very basic form) variable time, for example when using sedimentary age-depth models. It is for a single-equation, 1st order system.

currentStep : float
steps : float list
t : float
x : float
f : float -> float -> float
tt : float list
xx : float list
Returns: float list * float list

rungekutta4 x y h n f xx yy

Full Usage: rungekutta4 x y h n f xx yy

Parameters:
    x : float
    y : float
    h : float
    n : float
    f : float -> float -> float
    xx : float list
    yy : float list

Returns: float list * float list

Fourth order runge-kutta solver

x : float
y : float
h : float
n : float
f : float -> float -> float
xx : float list
yy : float list
Returns: float list * float list

rungekutta4' x y h f

Full Usage: rungekutta4' x y h f

Parameters:
    x : float
    y : float
    h : float
    f : float -> float -> float

Returns: float

Fourth order runge-kutta algorithm calculations

x : float
y : float
h : float
f : float -> float -> float
Returns: float

rungekutta4dual t x y h n f g tt xx yy

Full Usage: rungekutta4dual t x y h n f g tt xx yy

Parameters:
    t : float
    x : float
    y : float
    h : float
    n : float
    f : float -> float -> float -> float
    g : float -> float -> float -> float
    tt : float list
    xx : float list
    yy : float list

Returns: float list * float list * float list

Fourth order runge-kutta solver for a 2 equation, 1st order system

t : float
x : float
y : float
h : float
n : float
f : float -> float -> float -> float
g : float -> float -> float -> float
tt : float list
xx : float list
yy : float list
Returns: float list * float list * float list

rungekutta4dual' t x y h f g

Full Usage: rungekutta4dual' t x y h f g

Parameters:
    t : float
    x : float
    y : float
    h : float
    f : float -> float -> float -> float
    g : float -> float -> float -> float

Returns: float * float

Fourth order runge-kutta algorithm for a 2 equation, 1st order system. Adapted from: https://www.calvin.edu/~scofield/courses/m231/materials/rungeKuttaFormulas.pdf

t : float
x : float
y : float
h : float
f : float -> float -> float -> float
g : float -> float -> float -> float
Returns: float * float

Type something to start searching.