>  Docs Center  >  Libraries  >  Beaumont  >  TSUMCUMUL

TSUMCUMUL

TSUMCUMUL

Purpose


  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.

Category


  Numerical recipes

Inputs


  x: Input x values
  y: Input y values

Outputs


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

Modification History


  September 2009: Lifted from IDL astronomy user's library by Chris Beaumont



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us