Reputation: 51
I want to transform latex codes into wolfram on android,but I have no idea of how to do it, could anybody here to help me?
Upvotes: 5
Views: 8936
Reputation: 13121
Use ToExpression
expr = ToExpression["y=\\sin(x)+\\cos(x)", TeXForm]
Now you can use expr inside the notebook
expr /. x -> Pi
Another example
expr = ToExpression["\\int_a^b \\sin (x) \, dx", TeXForm]
But notice that Mathematica evaluated the TeXForm to Integrate
but went ahead and also evaluated the integral.
Upvotes: 4