Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3255 by [email protected]: Something wrong with solve. Maybe sqrt related
http://code.google.com/p/sympy/issues/detail?id=3255

I tried the following and got no result:

from sympy import *
from sympy.abc import a,r,s
f1=a - (r -2*s)
f2=-3 - (-a*r -2*s)
f3=5 - (2*r + 2*a*r)
for f_a in solve(f1,a):
        print 'f1 solved for a=',f_a
        for f_r in solve(f2.subs(a,f_a),r):
                print 'f2 solved for r=',f_r
                for f_s in solve(f3.subs(a,f_a).subs(r,f_r),s):
                        print 's=',f_s
                        f_r=f_r.subs(s,f_s)
                        print 'r=',f_r
                        f_a=f_a.subs(s,f_s).subs(r,f_r)
                        print 'a=',f_a

but when i exhange f1 and f3 i get an result

--
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.

Reply via email to