Skip to content

Commit dbb3cbe

Browse files
Simplify the expression before converting it to algebraic number
This commit changes the _algebraic_ function of Expression class to simplify the expression with simplify_full() function before converting it to algebraic number.
1 parent b002b63 commit dbb3cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/symbolic/expression.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,7 @@ cdef class Expression(Expression_abc):
20402040
0
20412041
"""
20422042
from sage.symbolic.expression_conversions import algebraic
2043-
return algebraic(self, field)
2043+
return algebraic(self.simplify_full(), field)
20442044

20452045
def __hash__(self):
20462046
r"""

0 commit comments

Comments
 (0)