This function uses the trapezoidal rule to perform a running integration of tabulated data. It is adapted from the tsum routine in the IDL astronomy user's library, but returns the integral at each point of x, and not just over one large region.
Integral(y dx) from x to x[i]. A vector of the same length as x and y.
- x in required
Input x values
- y in required
Input y values
|Modifcation date:||Mon Mar 29 16:55:51 2010|