On Dec 2, 5:29 pm, ggrafendorfer <[EMAIL PROTECTED]> wrote:
> Hi,
Hi Georg,
> I'm using sage 3.2 (compiled from sources) on a 32-bit Core Duo
> machine running Debian Etch:
>
> I'm not sure if this bug,
> why does
>
> sage: CDF(i^2)
> -1.0 + 1.22460635382e-16*I
>
> I'm not complaining about the "wrong" result, I understand the
> following:
>
> sage: CDF(i^2.)
> -1.0 + 1.22460635382e-16*I
>
> but, should i^2 not be treated like a symbolic Arithmetic and give the
> exact result -1?
You are using CDF == Complex Double Field, so numerical noise is to be
expected. IEEE arithmetic might be fast, but you pay for that speed
with imprecise results. It might be possible to compile without
optimization and get a "correct" result in that case, but that could
change by using another gcc release.
> Georg
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---