by almost · 17y ago · 0 comments
y=int(x^2,x=0..100)
and turn it into pretty print. That seems more natural than LaTeX. LaTeX is for getting exactly what you want on paper, at the expense of ease of typing.LaTeX has the added advantage that most mathematicians have it in muscle memory. (I have latex in emacs muscle memory, so I have a hard time using mathim.)
In[1]:= Unevaluated[y = Integrate[x^2, {x, 0, 100}]] // TeXForm
Out[1]= y=\int_0^{100} x^2 \, dx
which in that case is rather pointless but I suppose it could be helpful in the case of something more complicated.Maybe Maple can do that too; I don't know since I've only ever used Maple for one 20-minute session and don't have a copy handy.
> latex('y = int(x^2, x=0..100)')
y=\int _{0}^{100}\!{x}^{2}{dx}