Convert latex code to fortran code?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 10K views
nancy2fancy1
Messages
1
Reaction score
0
I have very large equations that I need to solve using numerical techniques. The equations are in latex. From these now I need to form matrix in fortran and then continue the solution procedure in fortran. Can anyone advice how I can do this conversion from latex code to fortran code. The number of equations is so large and the size of each equation is also huge. So to rewrite those in fortran would be very cumbersome. This work is related to scientific compuation. Thanks a lot
 
Physics news on Phys.org
You might be better off doing this manually... or else writing a perl or python script to do this.
LaTeX, of course, is a markup-language. It doesn't understand the mathematical operations required by fortran. If the LaTeX is constructed logically [as opposed to for merely visual appearance], your task is simpler.

Was the LaTeX generated by another program like Maple? If so, then you can ask Maple to generate the fortran code.
 
Last edited: