Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

FWIW :

sage: %time t.canonicalize_radical().is_zero()
CPU times: user 4.44 s, sys: 45.4 ms, total: 4.49 s
Wall time: 3.14 s
False
sage: %time t.n()
CPU times: user 20.6 ms, sys: 29 µs, total: 20.7 ms
Wall time: 20.6 ms
-1.20465101438222 - 0.876623543196119*I

HTH,

FWIW :

sage: %time t.canonicalize_radical().is_zero()
CPU times: user 4.44 s, sys: 45.4 ms, total: 4.49 s
Wall time: 3.14 s
False
sage: %time t.n()
CPU times: user 20.6 ms, sys: 29 µs, total: 20.7 ms
Wall time: 20.6 ms
-1.20465101438222 - 0.876623543196119*I

EDIT : Also :

sage: %time QQbar(t.canonicalize_radical())
CPU times: user 4.42 s, sys: 15.9 ms, total: 4.43 s
Wall time: 3.07 s
-1.204651014382222? + 0.8766235431961193?*I

whereas %time QQbar(t) "never" returns (> 1 min).

HTH,