rk_step(fun, t, y, f, h, A, B, C, K)
This function computes a prediction of an explicit Runge-Kutta method and also estimates the error of a less accurate method.
Notation for Butcher tableau is as in .
Right-hand side of the system.
Current time.
Current state.
Current value of the derivative, i.e., fun(x, y)
.
Step to use.
Coefficients for combining previous RK stages to compute the next stage. For explicit methods the coefficients at and above the main diagonal are zeros.
Coefficients for combining RK stages for computing the final prediction.
Coefficients for incrementing time for consecutive RK stages. The value for the first stage is always zero.
Storage array for putting RK stages here. Stages are stored in rows. The last row is a linear combination of the previous rows with coefficients
Solution at t + h computed with a higher accuracy.
Derivative fun(t + h, y_new)
.
Perform a single Runge-Kutta step.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them