[sympy] Re: performance benchmarks

2008-06-09 Thread Pearu Peterson
On Jun 9, 11:13 pm, "Gary Furnish" <[EMAIL PROTECTED]> wrote: > After Pearu suggested I give the microbenchmark on sympycore a try, I > can't seem to get more then 9000 expands on recent hardware. > I am running: > > In [54]: a,b,c = Rational(1,2), Rational(2,3), Rational(4,5) > In [64]: %timeit

[sympy] Re: Questions about expression forms

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 6:53 AM, Mark Dewing <[EMAIL PROTECTED]> wrote: > > Would it be useful to add a 'format hint' field to the nodes? > Expressions would remain stored as they are now, but the formatters > could use the hints to adjust the form of the output. > > For example, if a user enters s

[sympy] Re: performance benchmarks

2008-06-09 Thread Ondrej Certik
On Tue, Jun 10, 2008 at 1:30 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Tue, Jun 10, 2008 at 1:13 AM, Gary Furnish <[EMAIL PROTECTED]> wrote: >> >> After Pearu suggested I give the microbenchmark on sympycore a try, I >> can't seem to get more then 9000 expands on recent hardware. >> I am ru

[sympy] Re: performance benchmarks

2008-06-09 Thread Ondrej Certik
On Tue, Jun 10, 2008 at 1:13 AM, Gary Furnish <[EMAIL PROTECTED]> wrote: > > After Pearu suggested I give the microbenchmark on sympycore a try, I > can't seem to get more then 9000 expands on recent hardware. > I am running: > > In [54]: a,b,c = Rational(1,2), Rational(2,3), Rational(4,5) > In [64

[sympy] performance benchmarks

2008-06-09 Thread Gary Furnish
After Pearu suggested I give the microbenchmark on sympycore a try, I can't seem to get more then 9000 expands on recent hardware. I am running: In [54]: a,b,c = Rational(1,2), Rational(2,3), Rational(4,5) In [64]: %timeit (3*(a*x + b*y + c*z)).expand() 1 loops, best of 3: 110 µs per loop Ho

[sympy] Re: sympify and matrices

2008-06-09 Thread Pearu Peterson
On Jun 9, 9:18 am, "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > On Mon, Jun 9, 2008 at 10:40 AM, Pearu Peterson > > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Just a quick note that could be relevant to the discussion: > > check also out > > >http://code.google.com/p/sympycore/wiki/MatrixSupport

[sympy] Re: sympify and matrices

2008-06-09 Thread Robert Cimrman
Ondrej Certik wrote: >> Disadvantage -- if one needs to set entries of a Matrix using the >> syntax "A[1, 2] = y" not only at the beginning of the calculaton, but >> also in the middle, then he would have to do: A = Matrix(Array(A)[1,2] >> = y). Of course A[1,2] = y would create an exception sayin

[sympy] Re: sympify and matrices

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 10:40 AM, Pearu Peterson <[EMAIL PROTECTED]> wrote: > > Hi, > > Just a quick note that could be relevant to the discussion: > check also out > > http://code.google.com/p/sympycore/wiki/MatrixSupportIdeas > > that contains ideas how to deal with mutable matrices in > operatio

[sympy] Re: replace distutils with setuptools

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 8:38 AM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > > On Sun, Jun 01, 2008 at 06:20:44AM -0700, Vinzent Steinberg wrote: >> IMHO it's awesome. Let's switch to this way of distribution of sympy >> and its third party modules. (Additionally there could be of course a >> tar b

[sympy] Re: idea for sympy.org webpage

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 8:33 AM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > > On Thu, May 22, 2008 at 08:57:20AM +0200, Ondrej Certik wrote: >> I think it's finally time to create a good webpage for sympy.org, >> since we already have: > >> http://docs.sympy.org/ >> http://wiki.sympy.org/ >> http:

[sympy] Re: sympify and matrices

2008-06-09 Thread Pearu Peterson
Hi, Just a quick note that could be relevant to the discussion: check also out http://code.google.com/p/sympycore/wiki/MatrixSupportIdeas that contains ideas how to deal with mutable matrices in operations where they should be immutable, all in a very efficient way. The idea is based on using v

[sympy] Re: sympify and matrices

2008-06-09 Thread Robert Cimrman
Ondrej Certik wrote: > Let's clean this up. I sent an email to the numpy-list asking for an advice: > > http://projects.scipy.org/pipermail/numpy-discussion/2008-June/034801.html I agree with Robert Kern's view that sympy.Matrix should not be tied to numpy.matrix - the latter in numpy has a lim