Numerical integration and list of points
- To: mathgroup at smc.vnet.net
- Subject: [mg87622] Numerical integration and list of points
- From: guerom00 <guerom00 at gmail.com>
- Date: Mon, 14 Apr 2008 06:53:33 -0400 (EDT)
Hello everyone,
I have a function which I read as a list of points. I want then to
estimate its integral. I do more or less this :
data={{x1,y1},{x2,y2},...,{xN,yN}}
f=Interpolation[data]
NIntegrate[f[x],{x,x1,xN}]
Is it the correct way ? Because Mathematica hangs without giving me an
answer although it seems a pretty straightforward thing to do...
Thanks for any suggestions.
- Follow-Ups:
- Re: Numerical integration and list of points
- From: Curtis Osterhoudt <cfo@lanl.gov>
- Re: Numerical integration and list of points