# Directory `graphics/pstricks/contrib/pst-ode`

# The `pst-ode`

PSTricks package

https://gitlab.com/agrahn/pst-ode

© 2012–`\today`

Alexander Grahn

This package defines `\pstODEsolve`

for solving initial value problems for sets of Ordinary Differential Equations (ODE) using the Runge-Kutta-Fehlberg (** RKF45**) method with automatic step size adjustment.

`\pstODEsolve[<options>]{<result>}{<output format>}{`

*t*_{0}`}{`

*t*_{e}`}{`

*N*`}{`

**x**_{0}`}{`

**f**`(`

*t*`,`

**x**`)}`

The state vectors **x** found at *N* equally spaced output points between *t*_{0} and *t*_{e} are stored in the PostScript object `<result>`

, formatted according to the second argument `<output format>`

, as a long list of values. `<output format>`

lists the quantities to be stored in `<result>`

. The user can select from the elements of **x** and the integration parameter *t*.

The initial condition vector **x**_{0} and the right-hand side **f**`(`

*t*`,`

**x**`)`

of the ODE system can be input in algebraic notation, if desired. RPN (Postfix) notation of PostScript can as well be used.

`<result>`

can be directly used as the `<data>`

argument of `\listplot{<data>}`

(package `pst-plot`

) or `\listplotThreeD{<data>}`

(package `pst-3dplot`

).

This material is subject to the LaTeX Project Public License.

Download the contents of this package in one zip archive (130.6k).

## pst-ode – Solving initial value problems for sets of Ordinary Differential Equations

The package defines `\pstODEsolve` for solving initial
value problems for sets of Ordinary Differential Equations (ODE)
using the Runge-Kutta-Fehlberg (RKF45) method with automatic step
size adjustment.

The result is stored as a PostScript object and may be plotted
later using macros from other PSTricks packages, such as
`\listplot` (pst-plot) and
`\listplotThreeD` (pst-3dplot),
or may be further processed by user-defined PostScript procedures.
Optionally, the computed state vectors can be written as a table
to a text file.

Package | pst-ode |

Repository | https://gitlab.com/agrahn/pst-ode |

Version | 0.19 2024-01-04 |

Licenses | The LaTeX Project Public License |

Copyright | 2012–2024 Alexander Grahn |

Maintainer | Alexander Grahn |

TDS archive | `pst-ode.tds.zip` |

Contained in | TeX Live as pst-ode MiKTeX as pst-ode |

Topics | Graphics plot PSTricks Maths |