math - determining numerator and denominator in a relatively complex mathematical expression using python -
i'm trying convert calculator input latex. if user inputs this:
(3x^(x+(5/x)+(x/33))+y)/(32 + 5)
i have convert this:
frac{3x^(x+frac{5}{x}+frac{x}{33})+y}{32 + 5x}
however having issues determining when numerator begins , ends. suggestions?
a package exists kind of transformation : py2tex
if want reuse package, can use py2tex.interpret
class so.
Comments
Post a Comment