nag_ode_ivp_rk_range (d02pcc) Example Program Results

Calculation with tol =    1.0e-03

    t          y1         y2

   0.000      0.000      1.000
(User-supplied callback f, first invocation.)
   0.785      0.707      0.707
   1.571      0.999     -0.000
   2.356      0.706     -0.706
   3.142     -0.000     -0.999
   3.927     -0.706     -0.706
   4.712     -0.998      0.000
   5.498     -0.705      0.706
   6.283      0.001      0.997

Cost of the integration in evaluations of f is 124


Calculation with tol =    1.0e-04

    t          y1         y2

   0.000      0.000      1.000
   0.785      0.707      0.707
   1.571      1.000     -0.000
   2.356      0.707     -0.707
   3.142     -0.000     -1.000
   3.927     -0.707     -0.707
   4.712     -1.000      0.000
   5.498     -0.707      0.707
   6.283      0.000      1.000

Cost of the integration in evaluations of f is 235