Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

Never believe the symbolic ring as it can answer False when the result is True (hopefully a True is really True). To get the answer to your question, you would better do:

sage: QQbar(5).sqrt() in AA
True

Note: QQbar is the set of algebraic number and AA is the set of real algebraic numbers.

Vincent

click to hide/show revision 2
No.2 Revision

Hi,

Never believe the symbolic ring as it can answer False when the result is True (hopefully a True is really real True). To get the answer to your question, you would better do:

sage: QQbar(5).sqrt() in AA
True

Note: QQbar is the set of algebraic number and AA is the set of real algebraic numbers.

Vincent