Hi!

On 18 Jul., 05:14, Alex Ghitza <[email protected]> wrote:
...
> I'd like the second example to look more like the first and it's
> pretty easy to make that happen.  However, this means:
>
> {{{
> sage: x
> 1.00000000000000*x
> sage: y
> 1.00000000000000*y
> sage: (x^2 - y).variables()
> [1.00000000000000*x, 1.00000000000000*y]
>
> }}}
>
> I'm ok with the first two, but the last thing causes all sorts of
> problems in many places that expect the list to be [x, y].

One might think of a method 'variable_names' that returns a list of
strings, rather than a list of polynomials. Such method exists for
polynomial rings - the corresponding method for a polynomial p would
return only the names of those variables that actually occur in p.

Cheers,
    Simon

--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to