On Wed, 28 Aug 2024 at 03:46, Kwankyu Lee <ekwan...@gmail.com> wrote: > > > I think it is of doubtful correctness RR not being closed under coercion: > sage: RR(RR(-1)^(1/3)) > TypeError: unable to convert '0.500000000000000+0.866025403784439*I' > to a real number > > > "closed under coercion" sounds vague to me. I doubt if there is such a > concept in sage. > > Fractional powers not being closed is a python thing, which is inherited to > sage: > > >>> (-1)**(1/3) > (0.5000000000000001+0.8660254037844386j)
Your example illustrates twice that an operation can lead to a bigger set : 1/3 is a python float :-) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAGEwAAkZ4DLwn8RV_rC4EZ7%2BP73LR%2BfK6VhTNYjHgfE5DZoQKg%40mail.gmail.com.