Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A possible one-liner :

sage: (AA["x"](x^2-AA(sqrt(3)))).roots()

which can be abrbreviated as

sage: (x^2-AA(sqrt(3))).polynomial(AA).roots()

HTH,