Skip to content

Commit

Permalink
XXX drop expand()
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Apr 3, 2023
1 parent e6aca93 commit 2e7bf4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions diofant/polys/constructor.py
Expand Up @@ -114,8 +114,8 @@ def _construct_composite(coeffs, opt):
for coeff in coeffs:
numer, denom = coeff.as_numer_denom()

numers.append(numer)
denoms.append(denom)
numers.append(numer.expand())
denoms.append(denom.expand())

try:
polys, _opt = _parallel_dict_from_expr(numers + denoms,
Expand Down
3 changes: 0 additions & 3 deletions diofant/polys/polyutils.py
Expand Up @@ -215,9 +215,6 @@ def _parallel_dict_from_expr(exprs, opt):
if any(not expr.is_commutative for expr in exprs):
raise PolynomialError('non-commutative expressions are not supported')

if opt.expand is not False:
exprs = [expr.expand() for expr in exprs]

if not opt.gens:
opt = opt.clone({'gens': _find_gens(exprs, opt)})

Expand Down

0 comments on commit 2e7bf4c

Please sign in to comment.