Status: Accepted
Owner: asmeurer
CC: matt...@gmail.com
Labels: Type-Defect Priority-Medium Simplify Polynomial

New issue 2717 by asmeurer: apart() should automatically include algebraic numbers in an expression as an extension
http://code.google.com/p/sympy/issues/detail?id=2717

In [1]: apart(z/((z - 2)*(z + I)))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (17, 0))

---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython-input-1-200bdc3632a0> in <module>()
----> 1 apart(z/((z - 2)*(z + I)))

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/utilities/decorator.pyc in threaded_func(expr, *args, **kwargs) 23 func(expr.rhs, *args, **kwargs))
     24             else:
---> 25                 return func(expr, *args, **kwargs)
     26
     27     return threaded_func

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/polys/partfrac.pyc in apart(f, x, full, **args)
     36
     37     if P.is_multivariate:
---> 38 raise NotImplementedError("multivariate partial fraction decomposition")
     39
     40     common, P, Q = P.cancel(Q)

NotImplementedError: multivariate partial fraction decomposition

but,

In [3]: apart(z/((z - 2)*(z + I)), extension=[I])
Out[3]:
 1 + 2⋅ⅈ    2⋅(-2 + ⅈ)
───────── - ──────────
5⋅(z + ⅈ)   5⋅(z - 2)

apart() should do this automatically. At any rate, the error message is not very good, because the expression isn't really multivariate.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@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.

Reply via email to