Convert latex code to fortran code?

  • #1

Main Question or Discussion Point

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
 

Answers and Replies

  • #2
robphy
Science Advisor
Homework Helper
Insights Author
Gold Member
5,651
918
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:

Related Threads on Convert latex code to fortran code?

Replies
1
Views
261
  • Last Post
Replies
17
Views
9K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
8
Views
3K
  • Last Post
Replies
8
Views
3K
  • Last Post
Replies
16
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
2
Views
1K
Top