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.
d02mzf is not thread safe and should not be called from a multithreaded user program. Please see
Section 3.12.1 in How to Use the NAG Library and its Documentation for more information on thread safety.
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.