Comment #2 on issue 2716 by [email protected]: solve cannot handle systems
involving roots and constants
http://code.google.com/p/sympy/issues/detail?id=2716
_tsolve is responsible for removing the sqrt after polys has identified
that this equation is linear in the generator 'sqrt(x**2-16)'. But a
quadratic in this sqrt is not yet handled:
eq=u**2+2*u+1
solve(eq.subs(u,sqrt(x**2-16)))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy\solvers\solvers.py", line 481, in solve
solution = _solve(f, *symbols, **flags)
File "sympy\solvers\solvers.py", line 791, in _solve
"\nNo algorithms are implemented to solve equation %s" % f)
NotImplementedError: multiple generators [x, sqrt(x**2 - 16)]
No algorithms are implemented to solve equation x**2 + 2*sqrt(x**2 - 16) -
15
btw, systems of equations involving such equations are also handled now
(but gave NotImplementedError before):
>>> solve([sqrt(x**2-16+y)-3,x+y-4])
[{x: -sqrt(85)/2 + 1/2, y: 7/2 + sqrt(85)/2},
{x: 1/2 + sqrt(85)/2, y: -sqrt(85)/2 + 7/2}]
--
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.