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. Bill -- +---------------------------------------+ | Bill Purvis, Amateur Mathematician | | email: [EMAIL PROTECTED] | | http://bil.members.beeb.net | +---------------------------------------+ --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---