Alex Rivera | Logout

Methods for entering equations while programming in C/C++ , Python or Fortran

Asked 2011-09-05T11:12:22.043
12

I am writing a code which had long mathematical equations with many trigonometric and other identities. Is there a way of visualising the same expression in latex and making a C or python expression from it or the other way around.

How do you enter and check mathematical expressions to see if the brackets etc are in the right position and use them in latex documents?

Thanks in advance

Edit
Report

1 Answer

0

If you have Mathematica, it can import LaTeX code to a Mathematica expression, which can then be exported to C or MATLAB code, possibly FORTRAN as well.

It is fairly simple to convert MATLAB to Python syntax, I've done it in the past by search-and-replace, but a simple script could probably do it even quicker.

answered 2011-09-05T12:35:30.310

Your Answer