SDDSlib
|
Provides the Gill-Miller integration method for numerical integration of functions. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
int | GillMillerIntegration (double *integral, double *error, double *f, double *x, long n) |
Performs numerical integration using the Gill-Miller method. | |
Provides the Gill-Miller integration method for numerical integration of functions.
This file contains the implementation of the Gill-Miller integration algorithm, which integrates a function f(x) provided as arrays of x and f values. Based on P. E. Gill and G. F. Miller, The Computer Journal, Vol 15, No. 1, 80-83, 1972.
Definition in file GillMillerIntegration.c.
int GillMillerIntegration | ( | double * | integral, |
double * | error, | ||
double * | f, | ||
double * | x, | ||
long | n ) |
Performs numerical integration using the Gill-Miller method.
This function integrates a set of data points representing a function f(x) using the Gill-Miller integration technique. The integration is performed based on the algorithm described by P. E. Gill and G. F. Miller in their 1972 publication.
integral | Pointer to an array where the computed integral values will be stored. |
error | Pointer to an array where the estimated errors of the integral will be stored. This parameter can be NULL if error estimates are not required. |
f | Pointer to an array of y-values representing the function f(x) to be integrated. |
x | Pointer to an array of x-values corresponding to the function f(x). |
n | The number of data points in the arrays x and f. Must be greater than 1. |
Definition at line 42 of file GillMillerIntegration.c.