Lakeofsigh
Lakeofsigh

Reputation: 51

How to transform latex into wolfram?

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

Answers (1)

Nasser
Nasser

Reputation: 13121

Use ToExpression

expr = ToExpression["y=\\sin(x)+\\cos(x)", TeXForm]

Mathematica graphics

Now you can use expr inside the notebook

expr /. x -> Pi

Mathematica graphics

Another example

 expr = ToExpression["\\int_a^b \\sin (x) \, dx", TeXForm]

Mathematica graphics

But notice that Mathematica evaluated the TeXForm to Integrate but went ahead and also evaluated the integral.

Upvotes: 4

Related Questions