Ask Your Question

Revision history [back]

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

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