Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot order condition trees for Runge-Kutta method
ResourceFunction["ButcherPlot"][tree] gives a plot of the Butcher tree tree. | |
ResourceFunction["ButcherPlot"][{tree1,tree2,…}] gives an array of plots of the treei. |
| "ButcherPlotColumns" | Automatic | number of columns in an array of plots |
| "ButcherPlotNodeSize" | 1 | scaling factor for the nodes in the trees |
| "ButcherPlotRootSize" | 1 | scaling factor for highlighting roots |
| "ButcherPlotLabel" | {} | list of plot labels |
Use the resource function ButcherTrees to generate trees for any Runge-Kutta method of order 3:
| In[1]:= |
| Out[1]= |
Plot the trees:
| In[2]:= |
| Out[2]= | ![]() |
Plot a Butcher tree:
| In[3]:= |
| Out[3]= | ![]() |
Generate several trees with the resource function ButcherTrees and use ButcherPlot to plot them:
| In[4]:= |
| Out[4]= | ![]() |
Plot trees in a single column:
| In[5]:= |
| Out[5]= | ![]() |
Increase the size of nodes:
| In[6]:= |
| Out[6]= | ![]() |
Highlight roots with larger circles:
| In[7]:= |
| Out[7]= | ![]() |
Label trees:
| In[8]:= |
| Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License