nag_ode_ivp_adams_roots (d02qfc) Example Program Results
(User-supplied callback ftry02, first invocation.)
(User-supplied callback gtry02, first invocation.)

Root at 0.00000e+00
for event equation 2 with type 1 and residual 0.00000e+00
 Y(1) = 0.00000e+00   Y'(1) = 1.00000e+00

Root at 1.57076e+00
for event equation 1 with type 1 and residual -5.90726e-16
 Y(1) = 1.00003e+00   Y'(1) = -5.90726e-16

Root at 3.14151e+00
for event equation 2 with type 1 and residual -1.28281e-16
 Y(1) = -1.28281e-16   Y'(1) = -1.00012e+00

Root at 4.71228e+00
for event equation 1 with type 1 and residual 3.59623e-16
 Y(1) = -1.00010e+00   Y'(1) = 3.59623e-16

Root at 6.28306e+00
for event equation 2 with type 1 and residual 2.47333e-15
 Y(1) = 2.47333e-15   Y'(1) = 9.99979e-01

Root at 7.85379e+00
for event equation 1 with type 1 and residual -3.20716e-15
 Y(1) = 9.99970e-01   Y'(1) = -3.20716e-15

Root at 9.42469e+00
for event equation 2 with type 1 and residual -2.90637e-15
 Y(1) = -2.90637e-15   Y'(1) = -9.99854e-01