Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit a5fc9f9

Browse files
additional doctest
1 parent ac5aa6a commit a5fc9f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sage/symbolic/expression_conversions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,9 @@ def arithmetic(self, ex, operator):
10851085
Symbolic Ring
10861086
sage: bool(K.gen() == K(3)^(1/2) == sqrt(K(3)) == K(sqrt(3)) == sqrt(3))
10871087
True
1088+
sage: L = QuadraticField(3, embedding=-AA(3).sqrt())
1089+
sage: bool(L.gen() == -sqrt(3))
1090+
True
10881091
"""
10891092
# We try to avoid simplifying, because maxima's simplify command
10901093
# can change the value of a radical expression (by changing which

0 commit comments

Comments
 (0)