#include <cern_gauss56.h>

If
is the 5-point approximation, and
is the 6-point approximation to the integral, then integ_err() returns the result
with uncertainty
.
This class is based on the CERNLIB routines RGS56P and DGS56P which are documented at http://wwwasdoc.web.cern.ch/wwwasdoc/shortwrupsdir/d106/top.html
Definition at line 45 of file cern_gauss56.h.
Public Member Functions | |
| virtual double | integ (func_t &func, double a, double b, param_t &pa) |
Integrate function func from a to b. | |
| virtual int | integ_err (func_t &func, double a, double b, param_t &pa, double &res, double &err) |
Integrate function func from a to b giving result res and error err. | |
Protected Attributes | |
Integration constants | |
| double | x5 [5] |
| double | w5 [5] |
| double | x6 [6] |
| double | w6 [6] |
| virtual int integ_err | ( | func_t & | func, | |
| double | a, | |||
| double | b, | |||
| param_t & | pa, | |||
| double & | res, | |||
| double & | err | |||
| ) | [inline, virtual] |
Integrate function func from a to b giving result res and error err.
This function always returns gsl_success.
Implements inte.
Definition at line 90 of file cern_gauss56.h.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page