D02MZF interpolates components of the solution of a system of first-order differential equations from information provided by those integrators in
sub-chapter D02M–N using methods set up by
calls to
D02MVF,
D02NVF or
D02NWF.
D02MZF evaluates the first
M components of the solution of a system of ordinary differential equations at any point using natural polynomial interpolation based on information generated by the integrator. This information must be passed unchanged to D02MZF. D02MZF should not normally be used to extrapolate outside the range of values obtained from the above routine.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
The solution values returned will be of a similar accuracy to those computed by the integrator.
Not applicable.
None.
This example solves the well-known stiff Robertson problem written in implicit form
with initial conditions
and
over the range
with vector error control (
), the BDF method (setup routine
D02NVF) and functional iteration. The Jacobian is calculated numerically if the functional iteration encounters difficulty and the integration is in one-step mode (
), with natural interpolation to calculate the solution at intervals of
using D02MZF externally. D02NBY is used for
MONITR.