#include <integrate.h>
The result type returned from integrations, containing the value and an error.
Definition at line 54 of file integrate.h.
Public Member Functions | |
| operator double () const | |
| Conversion to double yields the value of the integral.  More... | |
| double | value () const | 
| Access the first entry in the pair as the value.  More... | |
| double | error () const | 
| Access the second entry in the pair as the absolute error.  More... | |
| void | check_error (const std::string &integration_name, double relative_tolerance=5e-4, double absolute_tolerance=1e-9) const | 
| Check whether the error is small and alert if it is not.  More... | |
Private Types | |
| using | Base = std::pair< double, double > | 
| The data type to store the value and the error of the integration.  More... | |
      
  | 
  private | 
The data type to store the value and the error of the integration.
Definition at line 56 of file integrate.h.
      
  | 
  inline | 
Conversion to double yields the value of the integral.
Definition at line 63 of file integrate.h.
      
  | 
  inline | 
Access the first entry in the pair as the value.
Definition at line 66 of file integrate.h.
      
  | 
  inline | 
Access the second entry in the pair as the absolute error.
Definition at line 69 of file integrate.h.
      
  | 
  inline | 
Check whether the error is small and alert if it is not.
| [in] | integration_name | Name of the integration used for error message. | 
| [in] | relative_tolerance | Relative error tolerance. | 
| [in] | absolute_tolerance | Absolute error tolerance. | 
Definition at line 79 of file integrate.h.