Nicu,
What you are askiing to be able to do seems (to me) to be rather perverse.
When you construct the polynomial ring you are specifically specifying
that its variable be the string 'x', but later you want to change its name
(as you do know how to do thanks to the other replies). 'x' is just a
string. I tried changing the __repr__ method of 'x', but python will not
allow that.
John
On Saturday, May 5, 2012 1:25:03 PM UTC+1, Nicu Tofan wrote:
>
> Hello!
>
> I see that is possible to rename() a symbol. But is it possible to
> customise the (latex) output?
> say:
> sage: x = PolynomialRing(QQ, 'x', sparse=True).gen()
> sage: g = x^3 + x - 5
> sage: latex(g)
>
> will print "x^{3} + x - 5", I know that. But is it possible to adjust x so
> that it prints "\alpha^{3} + \alpha - 5"?
>
>
--
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/sage-support
URL: http://www.sagemath.org