Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Mathematica Player Pro!
  • Next by Date: Re: List concatenation speed
  • Previous by thread: Re: Mathematica Player Pro!
  • Next by thread: Re: Numerical integration and list of points