On Jan 4, 2008 9:33 AM, bill purvis <[EMAIL PROTECTED]> wrote: > > On Friday 04 January 2008, harald schilly wrote: > > I don't know - looks like rounding errors, but it seems you are more > > interested in symbolic calculations. > > try: > > > > z = I > > z^2 > > and > > z*z > > > > also read I? and ComplexField? > > > > h > > > > On Jan 4, 3:51 pm, mb <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > Is the following a bug? > > > > > > sage: z=complex(0,1) > > > sage: z > > > 1j > > > sage: z*z > > > (-1+0j) > > > sage: z^2 > > > (1+1.967934973691981e-310j) > > > > > > --mb > > > Pretty gross rounding error to get +1 instead of -1. > > Just checked it on my 2.9.0.
This is clearly a serious bug. I've made it trac #1681: http://trac.sagemath.org/sage_trac/ticket/1681 William --~--~---------~--~----~------------~-------~--~----~ 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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---