This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/ode/problems

The test problems of lib/ode, with exact Jacobians by grad

Each problem is name(t, y, p) in the form lib/ode/solve.viv takes, and name_jac(t, y, p), its Jacobian, one reverse-mode grad per row of a def that returns one component (name_row). The stiff ones are from the test set of Hairer and Wanner (Solving ODEs II, section IV.10) and the IVP test set of Mazzia and Magherini (Bari); their reference solutions are in lib/ode/stiff_reference.viv.

Used with from ode.problems import robertson, robertson_jac, ....

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 15–244