Status: Valid
Owner: ----
CC: smi...@gmail.com
Labels: Type-Defect Priority-Medium Simplify

New issue 3953 by julien.r...@gmail.com: simplify returns a complicated factored form instead of a simpler result
http://code.google.com/p/sympy/issues/detail?id=3953

Given the code snippet:

from sympy import S, simplify, symbols
w, x, y, z = symbols('w x y z')
q = -2*x*y*(z/2 - S(1)/2) + z + z/w
simplify(q)

This used to simplify to
-x*y*(z - 1) + z + z/w
but now it simplifies to
(w*(-x*y*(z - 1) + z) + z)/w
which looks more complicated to me.

Bisect leads me to commit 3305c73b265691be4a411971cdbbd8e39e8810ca
Author: Chris Smith <smi...@gmail.com>
Date:   Wed Mar 27 22:41:50 2013 +0545

    modifications to simplify

    == add quick exit for simplify if expr is Atom

    == 3712: try return factored expression more often

    == 3730: use as_content_primitive and cancel

from https://github.com/sympy/sympy/pull/1925

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy-issues+unsubscr...@googlegroups.com.
To post to this group, send email to sympy-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to