Updates:
Status: Fixed
Comment #16 on issue 199 by mattpap: Factoring univariate polynomials and
rational functions
http://code.google.com/p/sympy/issues/detail?id=199
Almost everything is implemented in new polys, e.g.:
In [1]: Basic.keep_sign = True
In [2]: factor((x**2-1)/(x**2 - 4*x + 4), frac=True)
Out[2]:
(x + 1)⋅(x - 1)
───────────────
2
(x - 2)
In [3]: a = AlgebraicNumber((-1)**(S(1)/5), alias='alpha')
In [4]: cyclotomic_poly(5, x)
Out[4]:
4 3 2
x + x + x + x + 1
In [5]: factor(_, extension=a)
Out[5]:
⎛ 2⎞ ⎛ 3 2 ⎞ ⎛ 3⎞
(x + α)⋅⎝x - α ⎠⋅⎝x - α + α - α + 1⎠⋅⎝x + α ⎠
The only missing thing is splitting factorization ('split' keyword). This
will be
added when RootOf and related tools will be improved/implemented. A
separate issue
will be open for this (if necessary).
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
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.