Updates:
Labels: Milestone-Release0.7.0 NeedsReview
Comment #7 on issue 2075 by mattpap: solve fails for eq1=1 + 2*y/b - (e +
x)**2/a; eq3=1 + 2*y/d - (x - e)**2/c
http://code.google.com/p/sympy/issues/detail?id=2075
After recent changes the system doesn't hang for me any more:
In [1]: var('a:e')
Out[1]: (a, b, c, d, e)
In [2]: eq1=b + 2*y - a*(e + x)**2
In [3]: eq3=d + 2*y - c*(x - e)**2
In [4]: %time s = solve([eq1,eq3], x, y)
CPU times: user 1.15 s, sys: 0.00 s, total: 1.16 s
Wall time: 1.17 s
A test for a more general case was committed in
edf8eaf851097c166a5e778eef6ca608e1c99c1a. Also the original problem can be
solved now:
In [5]: _eq1=1 + 2*y/b - (e + x)**2/a
In [6]: _eq3=1 + 2*y/d - (x - e)**2/c
In [7]: %time _s = solve([_eq1,_eq3], x, y)
CPU times: user 1.79 s, sys: 0.00 s, total: 1.80 s
Wall time: 1.84 s
Both s and _s are large but readable, despite the number of additional
symbols.
--
You received this message because you are subscribed to the Google Groups
"sympy-patches" group.
To post to this group, send email to sympy-patc...@googlegroups.com.
To unsubscribe from this group, send email to
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-patches?hl=en.