This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/sympy/core/expr.py b/sympy/core/expr.py | |
| index 482e382eb6..a4125b46ac 100644 | |
| --- a/sympy/core/expr.py | |
| +++ b/sympy/core/expr.py | |
| @@ -3438,7 +3438,16 @@ def as_leading_term(self, *symbols, logx=None, cdir=0): | |
| """ | |
| from sympy import powsimp | |
| if len(symbols) > 1: | |
| - c = self | |
| + c = self.expand() |