|
SDDS ToolKit Programs and Libraries for C and Python
|
Performs numerical integration using Romberg's method.
Definition in file qromb.c.
#include "mdb.h"Go to the source code of this file.
Functions | |
| double | qromb (double(*func)(), long maxe, double a, double b, double eps) |
| Computes the definite integral of a function using Romberg's method. | |
| double qromb | ( | double(* | func )(), |
| long | maxe, | ||
| double | a, | ||
| double | b, | ||
| double | eps ) |
Computes the definite integral of a function using Romberg's method.
Estimates the integral of the function func over the interval ![$ [a, b] $](form_21.png)
| func | Pointer to the function to integrate. The function should accept a single double argument and return a double. |
| maxe | Maximum number of extrapolation steps to perform. |
| a | Lower limit of integration. |
| b | Upper limit of integration. |
| eps | Desired accuracy (error tolerance) for the integral approximation. |
Definition at line 34 of file qromb.c.