Examples

The package ships runnable example scripts in examples/ and generated visual outputs in test_output/ as SVG files.

This page is an overview. Detailed inputs, outputs, and figures are split by example family in the pages linked below.

Run examples from the package root:

python examples/example_imsl_ivpag.py
python examples/example_imsl_bvpfd.py
python examples/example_imsl_daspg.py
python examples/example_imsl_stiff_ode.py
python examples/example_imsl_events.py
python examples/example_imsl_phase_portrait.py
python examples/example_imsl_heat_equation.py
python examples/example_imsl_ode_methods.py
python examples/example_imsl_stability.py

Regenerate the documentation figures by rerunning the relevant examples from the package root. Each script updates one or more SVG files in test_output/.

Example Script Map

Script

Primary topic

Generated SVG outputs

example_imsl_ivpag.py

IVP solvers (IVPAG)

example_imsl_ivpag.svg

example_imsl_bvpfd.py

BVP finite differences (BVPFD)

example_imsl_bvpfd.svg

example_imsl_daspg.py

DAE / stiff systems (DASPG)

example_imsl_daspg.svg

example_imsl_stiff_ode.py

Stiff ODE — Robertson kinetics

example_imsl_stiff_ode.svg

example_imsl_events.py

Event detection — bouncing ball

example_imsl_events.svg

example_imsl_phase_portrait.py

Phase portrait — pendulum & Lotka-Volterra

example_imsl_phase_portrait.svg

example_imsl_heat_equation.py

1-D heat equation — method of lines

example_imsl_heat_equation.svg

example_imsl_ode_methods.py

ODE method comparison — Kepler orbit

example_imsl_ode_methods.svg

example_imsl_stability.py

Stability analysis & BVP shooting

example_imsl_stability.svg

Detailed pages by family: