David's solution is very clever -- but this is simpler:

 '('+latex(f)+')('+latex(g)+')'

Admittedly rather inelegent!

John


2008/8/23 Shing Hing Man <[EMAIL PROTECTED]>:
>
> Hi,
>
>  Consider polynomials
> f = 1 +t + 2*t^2
>  g=1+t
>
> over R.<t> = PolynomialRing(GF(7));
>
> How to get the Latex expression of fg without expanding the product ?
> ie (1 + t + 2 t^{2}) (1+t) .
>
> latex( fg) returns
>
> 2 t^{3} + 3 t^{2} + 2 t + 1
>
> Thanks in advance for any  assistance!
> I am using Sage 3.0,6.
>
> Shing
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to