Re: Numerical integration and list of points
- To: mathgroup at smc.vnet.net
- Subject: [mg87632] Re: Numerical integration and list of points
- From: dh <dh at metrohm.ch>
- Date: Tue, 15 Apr 2008 05:45:40 -0400 (EDT)
- References: <ftvd4f$d89$1@smc.vnet.net>
HI, what you describe sounds reasonable and should work. Did you check for syntax errors? How many pints are there? Try it with a few points and you may find the bug. hope this helps, Daniel guerom00 wrote: > 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. >