Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Convert latex code to fortran code?

  1. Dec 9, 2007 #1
    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
  2. jcsd
  3. Dec 9, 2007 #2


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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: Dec 9, 2007
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Convert latex code to fortran code?
  1. Latex Code (Replies: 4)

  2. [LaTeX] Help with code (Replies: 2)