nag_ode_ivp_rk_onestep (d02pdc) Example Program Results

Calculation with tol =    1.0e-04

    t          y1         y2

   0.000      0.000      1.000
(User-supplied callback f, first invocation.)
   0.785      0.707      0.707
   1.519      0.999      0.051
   2.282      0.757     -0.653
   2.911      0.229     -0.974
   3.706     -0.535     -0.845
   4.364     -0.940     -0.341
   5.320     -0.821      0.571
   5.802     -0.463      0.886
   6.283      0.000      1.000

Cost of the integration in evaluations of f is 78


Calculation with tol =    1.0e-05

    t          y1         y2

   0.000      0.000      1.000
   0.393      0.383      0.924
   0.785      0.707      0.707
   1.416      0.988      0.154
   1.870      0.956     -0.294
   2.204      0.806     -0.592
   2.761      0.371     -0.929
   3.230     -0.088     -0.996
   3.587     -0.430     -0.903
   4.022     -0.771     -0.637
   4.641     -0.997     -0.072
   5.152     -0.905      0.426
   5.521     -0.690      0.724
   5.902     -0.372      0.928
   6.283      0.000      1.000

Cost of the integration in evaluations of f is 118