Question: Functions, numerical integration and plotting

Hi,

 

I have been defining a function:

 

f1:=(m,r0,en)->evalf(Int(....),y=0..infinity)

 

for some reason when I call this function and pass it values say f1(0.1,2,3) Maple is unable to return me an answer, it just spits back the unevaluated inert integral with the values of the parameters inserted.

 

However, I know that Maple can do this integral if I just input :

 

evalf(Int(..),y=0..infinity)

then insert the parameters by hand then Malple will happily spit out 0.8068959025.

 

Why doesn't it do this when I call it as a function? why does it return the inert integral instead of the numeric value?

 

I need it to do this as I would like to make a plot of this function.

 

thanks for any help

Please Wait...