5,6-point Gaussian quadrature (CERNLIB) More...
#include <inte_gauss56_cern.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 48 of file inte_gauss56_cern.h.
Public Member Functions | |
virtual int | integ_err (func_t &func, double a, double b, double &res, double &err) |
Integrate function func from a to b giving result res and error err . More... | |
![]() | |
virtual double | integ (func_t &func, double a, double b) |
Integrate function func from a to b . | |
double | get_error () |
Return the numerically estimated error in the result from the last call to integ() More... | |
virtual const char * | type () |
Return string denoting type ("inte") | |
Protected Attributes | |
Integration constants | |
double | x5 [5] |
double | w5 [5] |
double | x6 [6] |
double | w6 [6] |
![]() | |
double | interror |
The uncertainty for the last integration computation. | |
Additional Inherited Members | |
![]() | |
int | verbose |
Verbosity. | |
size_t | last_iter |
The most recent number of iterations taken. | |
double | tol_rel |
The maximum relative uncertainty in the value of the integral (default ![]() | |
double | tol_abs |
The maximum absolute uncertainty in the value of the integral (default ![]() | |
bool | err_nonconv |
If true, call the error handler if the routine does not converge or reach the desired tolerance (default true) More... | |
|
inlinevirtual |
This function always returns success.
Implements o2scl::inte< func_t >.
Definition at line 83 of file inte_gauss56_cern.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).