Question: doing integrtion in maple via fortran code

Is it possible to pass fortran function to a maple file/procdure so that I can get back the numerical result of integration?

I was thinking like:

I tried to create, for example, helloworld.mpl

Executed the command in my terminal:

 

$ maple helloworld.mpl > output.txt

# executing maple in my terminal is same as doing cmaple.

Now my output.txt has the whole cmaple seesion in it, but I only want "helloworld" in there. How is it possible?

Second If somehow with your help I can remove the extra output from output.txt, and then create a maple procedure as integrator.mpl for integration, how could I pass some input to that integrator.mpl??

 

Regards!!

Please Wait...