Skip to content

Commit

Permalink
XXX stop expand in Mul._eval_evalf
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Feb 20, 2018
1 parent dcd44cf commit 537199e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions diofant/core/mul.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,6 @@ def _eval_evalf(self, prec):
rv = -m
else:
rv = AssocOp._eval_evalf(self, prec)
if rv.is_number:
return rv.expand()
return rv

@cacheit
Expand Down
2 changes: 1 addition & 1 deletion diofant/simplify/tests/test_sqrtdenest.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def s_check(rv, ans):
102*2**Rational(2, 3)*3**Rational(5, 6)*s**4*I + 1620*s**3 - 1620*sqrt(3)*s**3*I -
13872*cbrt(18)*s**2 + 471648 - 471648*sqrt(3)*I, [s, s**3 - 306*x
- sqrt(3)*sqrt(31212*x**2 - 165240*x + 61484) + 810]))
# assert solve(eq, x, check=False) != [] # not other code errors
assert solve(eq, x, check=False) != [] # not other code errors


@pytest.mark.xfail
Expand Down

0 comments on commit 537199e

Please sign in to comment.