Re: [sympy] Porting CSymPy back to Python

2013-10-07 Thread Ondřej Čertík
On Mon, Oct 7, 2013 at 12:05 PM, Aaron Meurer wrote: > On Mon, Oct 7, 2013 at 11:42 AM, Ondřej Čertík > wrote: >> On Sun, Oct 6, 2013 at 9:31 PM, Aaron Meurer wrote: >>> You can get similar speeds in regular SymPy. For me >>> >>> In [59]: R, x, y, z, w = ring("x,y,z,w", ZZ, lex) >>> >>> In [60]

Re: [sympy] Porting CSymPy back to Python

2013-10-07 Thread Aaron Meurer
On Mon, Oct 7, 2013 at 11:42 AM, Ondřej Čertík wrote: > On Sun, Oct 6, 2013 at 9:31 PM, Aaron Meurer wrote: >> You can get similar speeds in regular SymPy. For me >> >> In [59]: R, x, y, z, w = ring("x,y,z,w", ZZ, lex) >> >> In [60]: %timeit (x + y + z + w)**60 >> 1 loops, best of 3: 414 ms per l

Re: [sympy] Porting CSymPy back to Python

2013-10-07 Thread Ondřej Čertík
On Sun, Oct 6, 2013 at 9:31 PM, Aaron Meurer wrote: > You can get similar speeds in regular SymPy. For me > > In [59]: R, x, y, z, w = ring("x,y,z,w", ZZ, lex) > > In [60]: %timeit (x + y + z + w)**60 > 1 loops, best of 3: 414 ms per loop > > in pycsympy the fastest time was 405 ms. But be carefu

Re: [sympy] Porting CSymPy back to Python

2013-10-06 Thread Aaron Meurer
> On Oct 6, 2013, at 11:18 PM, "Ondřej Čertík" wrote: > > Hi Ronan, > >> On Sun, Oct 6, 2013 at 8:56 PM, Ronan Lamy wrote: >> I've been wondering how much of the speed of CSymPy compared to SymPy is due >> to the language (C++ vs Python) and how much is due to more efficient >> algorithms. So I'v

Re: [sympy] Porting CSymPy back to Python

2013-10-06 Thread Ondřej Čertík
Hi Ronan, On Sun, Oct 6, 2013 at 8:56 PM, Ronan Lamy wrote: > I've been wondering how much of the speed of CSymPy compared to SymPy is due > to the language (C++ vs Python) and how much is due to more efficient > algorithms. So I've created a simple proof of concept > [https://github.com/rlamy/py

Re: [sympy] Porting CSymPy back to Python

2013-10-06 Thread Aaron Meurer
You can get similar speeds in regular SymPy. For me In [59]: R, x, y, z, w = ring("x,y,z,w", ZZ, lex) In [60]: %timeit (x + y + z + w)**60 1 loops, best of 3: 414 ms per loop in pycsympy the fastest time was 405 ms. I wasn't able to compile CSymPy because of /Users/aaronmeurer/Documents/python

[sympy] Porting CSymPy back to Python

2013-10-06 Thread Ronan Lamy
I've been wondering how much of the speed of CSymPy compared to SymPy is due to the language (C++ vs Python) and how much is due to more efficient algorithms. So I've created a simple proof of concept [https://github.com/rlamy/pycsympy] implementing an algorithm similar to what CSymPy uses in p