NIntegrate with interpolating functions

 NIntegrate with interpolating functions

I have two interpolating function f1 and f2 which I got from a data set. When I try to Integrate with

NIntegrate[f1[x]/x f2[k/x], {k, 0, 1}, {x, k, 1}]

I get the error

NIntegrate::inumr: The integrand (1/x)InterpolatingFunction[{{0.,1.}},{5,3,0,{9999}
,{4},0,0,0,0,Automatic,{},{},False},{{<<1>>}},{{10000. xf[0.,0.0001,1000.,8.]},<<49>>
,<<9949>>},{Automatic}][<<1>>] <<1>> has evaluated to non-numerical values 
for all sampling points in the region with boundaries {{0,1},{0,1}}.

I always integrated interpolating function in this way and now I don’t understand the error.

Let’s block ads! (Why?)

Recent Questions – Mathematica Stack Exchange