Updates:
Status: Started
Owner: mattpap
Labels: Milestone-Release0.7.0 NeedsReview
Comment #2 on issue 1069 by mattpap: 'together' should not expand
denominators
http://code.google.com/p/sympy/issues/detail?id=1069
On polys11 branch I fixed and improved together(). Now we have:
In [1]: apart(1/(x + 1)/(x + 5))
Out[1]:
1 1
- ───────── + ─────────
4⋅(5 + x) 4⋅(1 + x)
In [2]: together(_)
Out[2]:
1
───────────────
(1 + x)⋅(5 + x)
In [3]: together(1+1/(x+1)**2)
Out[3]:
2
1 + (1 + x)
────────────
2
(1 + x)
In [4]: together(1+1/(x*(x+1)))
Out[4]:
1 + x⋅(1 + x)
─────────────
x⋅(1 + x)
In [5]: together(1/(x*(x+1))+1/(x*(x+2)))
Out[5]:
3 + 2⋅x
─────────────────
x⋅(1 + x)⋅(2 + x)
Note that if there are common factors between the numerator and
denominator, then together() won't cancel them. One can use cancel() for
this task, unfortunately at this point cancel() destroys the structure of
input expressions (the result has the numerator and denominator expanded).
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.