rsagl-frp-0.6.0.1: The RogueStar Animation and Graphics Library: Functional Reactive Programming

RSAGL.FRP.RK4

Synopsis

Documentation

rk4Source

Arguments

:: AbstractVector v 
=> (p -> v -> p)

Definition of vector addition.

-> (Time -> p -> Rate v)

Differential equation, representing velocity in terms of position at an absolute time.

-> p

Initial value.

-> Time

Starting time.

-> Time

Ending time.

-> p 

Implementation of RK4 that time steps a system in which velocity is a function of absolute time and position.

integrateRK4Source

Arguments

:: AbstractVector v 
=> (p -> v -> p)

Definition of vector addition.

-> (Time -> p -> Rate v)

Differential equation, representing velocity in terms of position at an absolute time.

-> p

Initial value.

-> Time

Starting time.

-> Time

Ending time.

-> Integer

Number of time steps.

-> p 

Implementation of RK4 that repeatedly time steps a system in which velocity is a function of absolute time and position.

rk4'Source

Arguments

:: AbstractVector v 
=> (p -> v -> p)

Definition of vector addition.

-> (Time -> p -> Rate v -> Acceleration v)

Differential equation, representing acceleration in terms of position and velocity at an absolute time.

-> (p, Rate v)

Initial value.

-> Time

Starting time.

-> Time

Ending time.

-> (p, Rate v) 

Implementation of RK4 that time steps a system in which acceleration is a function of absolute time, position and velocity.

integrateRK4'Source

Arguments

:: AbstractVector v 
=> (p -> v -> p)

Definition of vector addition.

-> (Time -> p -> Rate v -> Acceleration v)

Differential equation, representing acceleration in terms of position and velocity at an absolute time.

-> (p, Rate v)

Initial value.

-> Time

Starting time.

-> Time

Ending time.

-> Integer

Number of time steps.

-> (p, Rate v) 

Implementation of RK4 that repeatedly time steps a system in which acceleration is a function of absolute time, position and velocity.