answered 4 years ago
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,