Function Repository Resource:

ButcherPrincipalError

Source Notebook

Get a list of terms in the Taylor series expansion of the error for Runge–Kutta methods

Contributed by: Wolfram Research

ResourceFunction["ButcherPrincipalError"][p,s]

gives the principal error for a method of order p with s stages.

ResourceFunction["ButcherPrincipalError"][p]

gives the principal error using stage-independent tensor notation.

Details and Options

The principal error for a method of order p is a list of the order p+1 terms appearing in the Taylor series expansion of the error.
The following options can be given:
"ContinuousExtension"Falsewhether to generate conditions for continuous extensions
"RungeKuttaMethod""Implicit"type of Runge-Kutta method
Valid settings for "RungeKuttaMethod" are "DiagonallyImplicit", "Explicit", and "Implicit".

Examples

Basic Examples (2) 

The principal error coefficients for any second‐order, s‐stage method:

In[1]:=
ResourceFunction["ButcherPrincipalError"][2, s]
Out[1]=

The same coefficients in the stage-independent notation:

In[2]:=
ResourceFunction["ButcherPrincipalError"][2]
Out[2]=

Version History

  • 1.0.0 – 04 November 2019

Related Resources

License Information