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