On Jun 17, 2009, at 4:05 AM, John Cremona wrote:

> I think is is easier, both on the eye and for a beginner to
> understand:
>
> sage: x = polygen(ZZ)
> sage: f = 2*x**2 - x
> sage: f.factor()
> x * (2*x - 1)

Perhaps. I like the R[var] notation because it's a direct translation  
of the mathematical notation. Note the default variable name:

sage: t = polygen(ZZ)
sage: t
x

- Robert


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

Reply via email to