Hi Jason,

On 7 Mrz., 20:51, Jason Grout <jason-s...@creativetrax.com> wrote:
> I don't know if the following error is in the vector code or the
> coercion system.  It says it is a bug in coercion...
>
> ----------------------------------------------------------------------
> | Sage Version 3.4.alpha0, Release Date: 2009-02-24                  |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: f(x,y)=x+y-1
> sage: vector([x,y,f])
> ---------------------------------------------------------------------------
> RuntimeError                              Traceback (most recent call last)

I'd say this definition deserves an error being raised!
But perhaps a TypeError or ValueError might be better.

> RuntimeError: There is a bug in the coercion code in SAGE.
> Both x (=y) and y (=(x, y) |--> y + x - 1) are supposed to have
> identical parents but they don't.

The error message is strange/misleading. The coercion system complains
for a good reason - so why should it be a *bug* in the coercion code?

Cheers,
     Simon

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

Reply via email to