Hi,

On 27 June 2010 15:50, ilovesss2004 <[email protected]> wrote:

> Hi,
> The latex print function in sympy only can make latex code for math
> expression which includes at least a variable. If we input an
> expression without any variable like latex('2**2/3'), we will get
> '$1$' instead of '$\\frac{1}{3} 2^{2}$'.
>
>
just enter

>>> latex(2**S(2)/3)
'$\\frac{4}{3}$'

2/3 usually means floor division (you won't get a rational number this way).

Is there a python package I can use to output latex code for math
> expression without variables?
>
> Thanks a lot.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <sympy%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
>
Mateusz

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to