Updates:
        Status: Started
        Owner: mattpap
        Cc: -mattpap
        Labels: Polynomial Milestone-Release0.7.0 NeedsReview

Comment #3 on issue 2054 by mattpap: does factor need to use cancel?
http://code.google.com/p/sympy/issues/detail?id=2054

Since a183d25e77aa5a4490d9d1290a070f8e8528d7c3 in polys11, factor() uses together() internally. This way we get:

In [1]: factor(1/(x**2 + 2*x + 1/x) - 1)
Out[1]:
 ⎛           2    3⎞
-⎝1 - x + 2⋅x  + x ⎠
────────────────────
          2    3
   1 + 2⋅x  + x

In [2]: str(_)
Out[2]: -(1 - x + 2*x**2 + x**3)/(1 + 2*x**2 + x**3)

In [3]: ee = I*(exp(I*x) - exp(-I*x))/(exp(I*x) + exp(-I*x)) - I*(exp(I*x)/2 - exp(-I*x)/2)/(exp(I*x)/2 + exp(-I*x)/2)

In [4]: factor(_)
Out[4]: 0

In [5]: factor(ee.diff(x))
Out[5]: 0


--
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patc...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to