On 05/04/2010 10:30 AM, William A. Stein wrote:
Does anyone object to me changing float(CDF(1.0)) to behave like
float(CC(1.0)) (i.e., a float conversion will succeed if the
imaginary part is 0). Note that this will make CDF and the python
complex type have different behaviors.
I think I wrote the original code for this, and I am ok with the
change you suggest, since our policy on explicit coercions is to make
them work when they make (some) mathematical sense.
I just found on trac that Robert Bradshaw also (at least at one time)
seemed to want this change:
http://trac.sagemath.org/sage_trac/ticket/5400#comment:12
Thanks,
Jason
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org