Using latex() without calculating the answer.

23 views
Skip to first unread message

zel noth

unread,
Feb 16, 2015, 9:40:47 AM2/16/15
to sy...@googlegroups.com
I want to use the latex function without calculating the input. For instance if I do latex((2+3)/7) the answer comes out as 5/7, when I want it to come out as (2+3)/7 (with latex).

Chris Smith

unread,
Feb 16, 2015, 8:12:14 PM2/16/15
to sy...@googlegroups.com
>>> latex(S('(2+3)/7',evaluate=False))
'\\frac{1}{7} \\left(2 + 3\\right)'
Reply all
Reply to author
Forward
0 new messages