On Dec 11, 2007 8:39 AM, Joel B. Mohler <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've noticed a very recent regression -- it worked 2 months ago.
>
> sage: t=var('t')
> sage: f=t*cos(0)
> sage: float(f(1))
> 1.0
> sage: f=t*sin(0)
> sage: float(f(1))
> Traceback...
> <type 'exceptions.TypeError'>: float() argument must be a string or a number
>

Exactly the real problem that leads to this also causes the following
to failure:

sage: w = I - I
sage: w
0
sage: float(w)
<type 'exceptions.TypeError'>
boom!

I mentioned this to Robert Bradshaw who suggested a very nice
fix that I've implemented and posted at trac #1460:

   http://trac.sagemath.org/sage_trac/ticket/1460

This also fixes the original problem that you reported above, without
changing anything at all about the semantics of Sage (i.e., all the
discussion in this thread -- which was of course very interesting).

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to