Comment #1 on issue 3237 by ness...@gmail.com: cancel() should use ratsimpmodprime when necessary
http://code.google.com/p/sympy/issues/detail?id=3237
This works, but it is going to be just as slow as trigsimp_groebner. The cancellation algorithms should be able to work in QQ(i), or whatever the appropriate field. In fact:
In [3]: cancel((x**2 + 1)/(I*x - 1), extension=I) Out[3]: -ⅈ⋅(x - ⅈ) -- 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.