Comment #13 on issue 458 by [email protected]: radsimp() makes expressions
more complex.
http://code.google.com/p/sympy/issues/detail?id=458
c8 pointed out the the OP issue was fixed. 1825 fixes the explosion-in-size
issue and a pull is forthcoming.
>>> ok = var('a:z')
>>> eq1 = x*a + y*b + z*c - 1
>>> eq2 = x*d + y*e + z*f - 1
>>> eq3 = x*g + y*h + z*i - 1
>>> s = solve([eq1,eq2,eq3],[x,y,z])
>>> for k,v in s.items():
... print k
... pprint(v)
... print
...
x
b*f - b*i - c*e + c*h + e*i - f*h
---------------------------------------------
a*e*i - a*f*h - b*d*i + b*f*g + c*d*h - c*e*g
y
-a*f + a*i + c*d - c*g - d*i + f*g
---------------------------------------------
a*e*i - a*f*h - b*d*i + b*f*g + c*d*h - c*e*g
z
a*e - a*h - b*d + b*g + d*h - e*g
---------------------------------------------
a*e*i - a*f*h - b*d*i + b*f*g + c*d*h - c*e*g
>>> s[x].count_ops()
29
>>> radsimp(s[x]).count_ops()
29
--
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.