nag_ode_ivp_rk_reset_tend (d02pwc) Example Program Results

Calculation with tol =    1.0e-04

   t        y1        y2        y3        y4

  0.000    0.3000    0.0000    0.0000    2.3805
(User-supplied callback f, first invocation.)
  3.142   -1.7000    0.0000   -0.0000   -0.4201
  6.283    0.3000   -0.0000    0.0001    2.3805
  9.425   -1.7000    0.0000   -0.0000   -0.4201
 12.566    0.3000   -0.0003    0.0016    2.3805
 15.708   -1.7001    0.0001   -0.0001   -0.4201
 18.850    0.3000   -0.0010    0.0045    2.3805

Cost of the integration in evaluations of f is 571


Calculation with tol =    1.0e-05

   t        y1        y2        y3        y4

  0.000    0.3000    0.0000    0.0000    2.3805
  3.142   -1.7000   -0.0000    0.0000   -0.4201
  6.283    0.3000    0.0000   -0.0000    2.3805
  9.425   -1.7000    0.0000   -0.0000   -0.4201
 12.566    0.3000   -0.0001    0.0004    2.3805
 15.708   -1.7000    0.0000   -0.0000   -0.4201
 18.850    0.3000   -0.0003    0.0012    2.3805

Cost of the integration in evaluations of f is 748