SDDSlib
|
Provides functions for performing trapezoidal integration on data sets. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
long | trapazoidIntegration (double *x, double *y, long n, double *integral) |
Computes the integral of a dataset using the trapezoidal rule. | |
long | trapazoidIntegration1 (double *x, double *y, long n, double *integral) |
Computes the integral as a function of x using the trapezoidal rule. | |
Provides functions for performing trapezoidal integration on data sets.
Definition in file trapInteg.c.
long trapazoidIntegration | ( | double * | x, |
double * | y, | ||
long | n, | ||
double * | integral ) |
Computes the integral of a dataset using the trapezoidal rule.
This function calculates the integral of the given data points using the trapezoidal rule.
x | Pointer to the array of x-values. |
y | Pointer to the array of y-values. |
n | The number of data points. |
integral | Pointer to store the computed integral. |
Definition at line 29 of file trapInteg.c.
long trapazoidIntegration1 | ( | double * | x, |
double * | y, | ||
long | n, | ||
double * | integral ) |
Computes the integral as a function of x using the trapezoidal rule.
This function calculates the integral at each x-value using the trapezoidal rule.
x | Pointer to the array of x-values. |
y | Pointer to the array of y-values. |
n | The number of data points. |
integral | Pointer to store the computed integral values. |
Definition at line 53 of file trapInteg.c.