On Tue, Jun 22, 2010 at 11:13 AM, cjung <[email protected]> wrote: > 0.?e-18 + 0.?e-19*I # <- should be zero
I think that this is actually zero -- it just doesn't know it for sure yet. For example, look at sage: q = QQbar(sqrt(2)) sage: p = q^2; p 2.000000000000000? sage: p == 2 True sage: p 2 and sage: q = QQbar(sqrt(2)) sage: p = q^2; p 2.000000000000000? sage: p.exactify(); p 2 So, if you call s.exactify() before you return, you should actually get zero. --Mike -- 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-support URL: http://www.sagemath.org
