nag_ode_ivp_rk_interp (d02pxc) Example Program Results

Calculation with tol =    1.0e-03

    t          y1           y2

   0.000      0.0000       1.0000
(User-supplied callback f, first invocation.)
   0.393      0.3827       0.9239
   0.785      0.7071       0.7071
   1.178      0.9239       0.3826
   1.571      1.0000      -0.0001
   1.963      0.9238      -0.3828
   2.356      0.7070      -0.7073
   2.749      0.3825      -0.9240
   3.142     -0.0002      -0.9999
   3.534     -0.3829      -0.9238
   3.927     -0.7072      -0.7069
   4.320     -0.9239      -0.3823
   4.712     -0.9999       0.0004
   5.105     -0.9236       0.3830
   5.498     -0.7068       0.7073
   5.890     -0.3823       0.9239
   6.283      0.0004       0.9998

Cost of the integration in evaluations of f is 68


Calculation with tol =    1.0e-04

    t          y1           y2

   0.000      0.0000       1.0000
   0.393      0.3827       0.9239
   0.785      0.7071       0.7071
   1.178      0.9239       0.3827
   1.571      1.0000      -0.0000
   1.963      0.9239      -0.3827
   2.356      0.7071      -0.7071
   2.749      0.3827      -0.9239
   3.142     -0.0000      -1.0000
   3.534     -0.3827      -0.9239
   3.927     -0.7071      -0.7071
   4.320     -0.9239      -0.3827
   4.712     -1.0000       0.0000
   5.105     -0.9238       0.3827
   5.498     -0.7071       0.7071
   5.890     -0.3826       0.9239
   6.283      0.0000       1.0000

Cost of the integration in evaluations of f is 105