Updates:
Labels: Polynomial
Comment #8 on issue 2033 by mattpap: solve should be able to handle
rational function systems
http://code.google.com/p/sympy/issues/detail?id=2033
Regarding #3, now in polys11 the behaviour is as follows:
In [2]: var('r,t')
Out[2]: (r, t)
In [3]: solve([r - x**2 - y**2, tan(t) - y/x], [x, y])
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
/home/matt/repo/git/sympy/<ipython console> in <module>()
/home/matt/repo/git/sympy/sympy/solvers/solvers.pyc in solve(f, *symbols,
**flags)
369 polys.append(poly)
370 else:
--> 371 raise NotImplementedError()
372
373 if all(p.is_linear for p in polys):
NotImplementedError:
In [4]: solve([r - x**2 - y**2, x*tan(t) - y], [x, y])
Out[4]:
⎡⎛ ⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽ ⎞ ⎛
⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽ ⎞⎤
⎢⎜ ╱ 2 ⎟ ⎜ ╱
2 ⎟⎥
⎢⎜ ╱ r⋅tan (t) ⎟ ⎜ ╱ r⋅tan
(t) ⎟⎥
⎢⎜ ╱ ─────────── ⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎟ ⎜- ╱ ───────────
⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎟⎥
⎢⎜ ╱ 2 ╱ 2 ⎟ ⎜ ╱ 2
╱ 2 ⎟⎥
⎢⎜╲╱ 1 + tan (t) ╱ r⋅tan (t) ⎟ ⎜ ╲╱ 1 + tan (t)
╱ r⋅tan (t) ⎟⎥
⎢⎜───────────────────, ╱ ─────────── ⎟, ⎜────────────────────, - ╱
─────────── ⎟⎥
⎢⎜ tan(t) ╱ 2 ⎟ ⎜ tan(t)
╱ 2 ⎟⎥
⎣⎝ ╲╱ 1 + tan (t) ⎠ ⎝ ╲╱
1 + tan (t) ⎠⎦
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.