Hi Ben! On Sun, Apr 18, 2010 at 7:06 PM, Ben Goodrich <goodrich....@gmail.com> wrote: > Hi Chris, > > On Apr 18, 12:01 pm, smichr <smi...@gmail.com> wrote: >> Hi Ben, >> >> I tried the original expressions that you posted and this takes 9 >> minutes on my pretty modest machine with branch 1766 (on which I've >> reworked the expand quite a bit). Try >> >> numer = (first*second - third**2).expand(mul=1) >> >> and see what you get there. >> >> /c > > I hit a problem with your 1766 branch on github just now > > bgoodr...@room320:/tmp/smichr-sympy-8279aa7$ ./bin/isympy > Traceback (most recent call last): > File "./bin/isympy", line 80, in <module> > from sympy.interactive import init_session > File "./sympy/__init__.py", line 22, in <module> > from sympy.core import * > File "./sympy/core/__init__.py", line 4, in <module> > from basic import Basic, Atom, S, C > File "./sympy/core/basic.py", line 1774, in <module> > from sympy.core.symbol import Symbol, Wild > File "./sympy/core/symbol.py", line 3, in <module> > from expr import Expr > File "./sympy/core/expr.py", line 1262, in <module> > from mul import Mul > File "./sympy/core/mul.py", line 5, in <module> > from sympy.utilities.iterables import make_list, iff > File "./sympy/utilities/__init__.py", line 5, in <module> > from iterables import (iff, make_list, flatten, subsets, > numbered_symbols, > File "./sympy/utilities/iterables.py", line 33 > return expr.func(*[rebuild(a, new) for a in expr.args], > evaluate=evaluate_basic) > ^ > SyntaxError: invalid syntax > > Mateusz's suggestions are working well for me, just ugly. And it is > still slow and RAM-hungry when you convert a big sdp polynomial back > into basic SymPy form at the end, but maybe your work on expand / core > will help a bit with that.
Thanks for pushing sympy to it's limits. I'll talk to Mateusz about this on Tuesday how we could go about this to improve it. Ondrej -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.