Re: Using InterpolatingFunction in Argument of NIntegrate

*To*: mathgroup at smc.vnet.net*Subject*: [mg57806] Re: Using InterpolatingFunction in Argument of NIntegrate*From*: dh <dh at metrohm.ch>*Date*: Thu, 9 Jun 2005 05:17:39 -0400 (EDT)*References*: <d8691p$c70$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Hi Iggy, what you describe should work. I guess you have a syntactical error. E.g. you have to write g[f[x]]] instead of: g(f(x) If this does not help, you have to be more specific. sincerely, Daniel Iggy wrote: > Hi, > > I am solving numberically an ODE and outputing the results into a function > f(x). This f(x) is some InterpolatingFunction. > > I would like to then use f(x) in a call to NIntegrate in a way such as: > > NIntegrate[g(f(x),{x,0,1}] > > However I get an integrand not numerical error. I can easily Plot g(f(x)) > and if I replace f(x) with some function like x^2 everything works too. > > How can I get around this? > > Thanks, > > Iggy >