Question: combine integration and interpolation ??

If I do:

with(CurveFitting):

xydata:=[[0,1],[1,5],[3,9]]:

RationalInterpolation(xydata,x);

I get a rational funciton that goes through those points.

 

What I want to do is interpolate the following function of x:

evalf(int(exp(-a^2 + x),a=0..5);

So, now instead of:

xydata:=[[0,1],[1,5],[3,9]]:

I have something like:

xydata:=[0,subs(evalf(int(exp(-a^2 + x),a=0..5),x=0)],[1,subs(evalf(int(exp(-a^2 + x),a=0..5),x=1)],[2, ......

 

But of course it would be neat if I could do something like:

interpolate(int(exp(a^2+x),a=0..5),x=0..5);

 

Is there a simple way of doing this like mathematica's Interpolate[Table,{x,y}] function ??

Please Wait...