nag_1d_quad_gauss_1 (d01tac) Example Program Results

Gauss-Legendre example

(User-supplied callback fun1, first invocation.)
4 Points    Answer =    3.14161

8 Points    Answer =    3.14159

16 Points    Answer =    3.14159


Gauss-Rational example

(User-supplied callback fun2, first invocation.)
4 Points    Answer =    0.37910

8 Points    Answer =    0.37876

16 Points    Answer =    0.37869


Gauss-Laguerre example

(User-supplied callback fun3, first invocation.)
4 Points    Answer =    0.04887

8 Points    Answer =    0.04890

16 Points    Answer =    0.04890


Gauss-Hermite  example

(User-supplied callback fun4, first invocation.)
4 Points    Answer =    1.42803

8 Points    Answer =    1.42817

16 Points    Answer =    1.42817