Hi all, I have a question about the following behavior of Sage:
sage: z = (-1+sqrt(-3))/2 sage: b = (1+z)^3 sage: b in QQ False sage: b.expand() in QQ True Why b in QQ return False and b.expand() in QQ return True? Since b is -1, I expected True in both cases. Also, QQ(b) return an error: TypeError: unable to convert 1/8*(sqrt(-3) + 1)^3 to a rational Thanks Alex Lara -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org