Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes

./

tsumcumul.pro

toptsumcumul

Numerical recipes

result = tsumcumul(x, y)

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.

Return value

Integral(y dx) from x[0] to x[i]. A vector of the same length as x and y.

Parameters

x in required

Input x values

y in required

Input y values

File attributes

Modifcation date: Mon Mar 29 16:55:51 2010
Lines: 46