[sympy] Does sympify has an upper limit of number of variables?

2015-07-21 Thread Hong Xu
Hi, When I tried to run print(sympify('a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N')) I got the error: Traceback (most recent call last): File test.py, line 6, in module

Re: [sympy] Why would using together() change the solution and why would simplify() return False?

2015-07-21 Thread Aaron Meurer
This is already fixed in master: In [1]: srepr(Symbol('x', real=True)) Out[1]: Symbol('x', real=True) Aaron Meurer On Tue, Jul 21, 2015 at 1:53 PM, G.B. g.c.b.at.w...@gmail.com wrote: It looks like srepr() doesn’t capture the real=True parameter to Symbol. from sympy import *

Re: [sympy] Re: Being more conscious of performance

2015-07-21 Thread Ondřej Čertík
On Mon, Jul 20, 2015 at 11:29 PM, Ondřej Čertík ondrej.cer...@gmail.com wrote: It's because I didn't have fastcache installed After installing it, by default I got: certik@redhawk:~/repos/symengine/benchmarks(py)$ python kane2.py Setup Converting to SymEngine... SymPy Jacobian: Total

Re: [sympy] Why would using together() change the solution and why would simplify() return False?

2015-07-21 Thread G.B.
It looks like srepr() doesn’t capture the real=True parameter to Symbol. from sympy import * s=Symbol('s') f=Symbol('f',real=True) SExp=Eq(s,2*pi*I*f) srepr(SExp) — Equality(Symbol('s'), Mul(Integer(2), I, pi, Symbol('f'))) Is this another issue to be submitted? In the mean time, I think

Re: [sympy] Does sympify has an upper limit of number of variables?

2015-07-21 Thread Jason Moore
N is a function in SymPy, so is S. So sympify is trying to transform those into a function. You can avoid the variables that clash with top level sympy functions as work around. Jason moorepants.info +01 530-601-9791 On Tue, Jul 21, 2015 at 8:22 PM, Hong Xu h...@topbug.net wrote: Hi, When I

Re: [sympy] Does sympify has an upper limit of number of variables?

2015-07-21 Thread Amit Saha
On Wed, Jul 22, 2015 at 1:22 PM, Hong Xu h...@topbug.net wrote: Hi, When I tried to run print(sympify('a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N')) I got the error: Traceback (most recent call last): File test.py, line 6, in module