sage: ZZ(-1).nth_root(3)
-1
sage: _.parent()
Integer Ring
sage: QQ(-1).nth_root(3)
-1
sage: _.parent()
Rational Field
sage: RR(-1).nth_root(3)
-1.00000000000000
sage: _.parent()
Real Field with 53 bits of precision
sage: CC(-1).nth_root(3)
0.500000000000000 + 0.866025403784439*I
sage: _.parent()
Complex Field with 53 bits of precision
sage: QQbar(-1).nth_root(3)
0.500000000000000? + 0.866025403784439?*I
sage: _.parent()
Algebraic Field 
sage: AA(-1).nth_root(3)
-1
sage: _.parent()
Algebraic Real Field

sage: ZZ(-1)^(1/3)
(-1)^(1/3)
sage: QQ(-1)^(1/3)
(-1)^(1/3)
sage: RR(-1)^(1/3)
0.500000000000000 + 0.866025403784439*I
sage: CC(-1)^(1/3)
0.500000000000000 + 0.866025403784439*I
sage: QQbar(-1)^(1/3)
0.500000000000000? + 0.866025403784439?*I
sage: QQbar(ZZ(-1)^(1/3))
0.500000000000000? + 0.866025403784439?*I
sage: QQbar(QQ(-1)^(1/3))
0.500000000000000? + 0.866025403784439?*I
sage: AA(-1)^(1/3)
-1

-- 
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/e469ce8e-31e7-4858-adea-b305ebe8d019n%40googlegroups.com.

Reply via email to