Issue
Mathpix can automatically convert scanned formulas into LaTeX math code.
Is there a similar tool that automatically converts scanned formulas or LaTeX math-mode equations (code) into python (numpy) code?
Solution
As far as I know, there's nothing that's really comprehensive. However, there is this tool, called latex2sympy, that converts (some) LaTeX equations to SymPy. It's SymPy, not numpy (so will give you, e.g., x**2 and not np.square(x), but might help. Here's a screenshot of its README info showing some basic usage. It's not going to handle anything complicated or unusual, but for basic equations it might do the trick.
Answered By - K Allison Answer Checked By - Candace Johnson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.