OSU Physics Faqs : Mathematica : Input and output from files : How do I output results in fortran-readable form?
There are two ways to do this. First, if you are using Mathematica 3.0 or higher, there is a function called FortranForm which allows you to print output in FORTRAN readable form to a file or printer. There is also a source known as MathLink which allows communication between Mathematica and various programming languages. Two sites which allow downloadable Mathlink tools are: http://www.mathsource.com/Content/Enhancements/MathLink/0206-693 and http://www.mathsource.com/Content22/Enhancements/Interfacing/Fortran/0205-43. More information on both MathLink and the FortranForm command can be found at the Mathematica website: http://www.wolfram.
There are two ways to do this. First, if you are using Mathematica 3.0 or higher, there is a function called FortranForm which allows you to print output in FORTRAN readable form to a file or printer. There is also a source known as MathLink which allows communication between Mathematica and various programming languages. Two sites which allow downloadable Mathlink tools are: http://www.mathsource.com/Content/Enhancements/MathLink/0206-693 and http://www.mathsource.com/Content22/Enhancements/Interfacing/Fortran/0205-43.