easy_install and pypi

2008-04-01 Thread Colin Gillespie
Dear All, Just a quick note to say that pypi is slightly out of date. Also, I use easy_install to install python packages, and although easy_install works with sympy, there are a lot of warning messages. The warning messages are mainly about not having __init__.py files in your directories. For

Re: easy_install and pypi

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 12:44 PM, Colin Gillespie <[EMAIL PROTECTED]> wrote: > > Dear All, > > Just a quick note to say that pypi is slightly out of date. Also, I > use easy_install to install python packages, and although easy_install > works with sympy, there are a lot of warning messages. >

Re: sympify of 'lambda' and 'E'

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 11:41 AM, Colin Gillespie <[EMAIL PROTECTED]> wrote: > > I've just found out that it's not 'E' that's causing the problem, it's > 'S'. > > sympify('S') #works > sympify('S*X') #doesn't work That's because S is imported in the sympy module: In [1]: S Out[1]: S In [2]:

Re: sympify of 'lambda' and 'E'

2008-04-01 Thread Colin Gillespie
I've just found out that it's not 'E' that's causing the problem, it's 'S'. sympify('S') #works sympify('S*X') #doesn't work Cheers Colin On Mar 31, 5:29 pm, Colin Gillespie <[EMAIL PROTECTED]> wrote: > Dear All, > > I suspect that sympify is getting confused by python's builtin lambda > and E

Re: sympify of 'lambda' and 'E'

2008-04-01 Thread Colin Gillespie
> I created: > > http://code.google.com/p/sympy/issues/detail?id=773 > > anyone feel free to fix it. :) Many thanks. Colin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send em

Re: sympify of 'lambda' and 'E'

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 11:54 AM, Mateusz Paprocki <[EMAIL PROTECTED]> wrote: > > Hi Colin, > > The problem with 'S' is that it is a singleton factory: > > In [8]: sympify('S.Zero') > Out[8]: 0 > > In [9]: sympify('S.One') > Out[9]: 1 > > So sympify('S*x') can't work: > > In [10]: sympify('

Re: sympify of 'lambda' and 'E'

2008-04-01 Thread Mateusz Paprocki
Hi Colin, The problem with 'S' is that it is a singleton factory: In [8]: sympify('S.Zero') Out[8]: 0 In [9]: sympify('S.One') Out[9]: 1 So sympify('S*x') can't work: In [10]: sympify('S') Out[10]: S In [11]: type(_) Out[11]: For the similar reason sympify('lambda') does not work: In [13]

Re: easy_install and pypi

2008-04-01 Thread Colin Gillespie
Hi Ondrej, Warning: I'm not an expert on pypi or setup.py file, so these are only suggestions. > > Thanks for noticing. The tests/ directories are our tests, so I don't > think they should be imported. Why should there by __init__ files in > it? Could it be because in setup.py you have: package

wildcard symbols

2008-04-01 Thread atir ajnopse
Hi. I'm new to this list and was interested in sympy to use it to help implement a DSL for audio synthesis. I had a question: I would like to have a symbol, say "_" --without the quotation marks ;-) , which creates unique copies of itself so that the following is possible: f = _ + _ -> would b

Re: Parametric Derivative

2008-04-01 Thread Ondrej Certik
Hi Alan! On Sun, Mar 30, 2008 at 6:20 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > If F(x,y,z,w) and x=x(t) and y=y(t) here is what I did to calculate > df/dt. Do you have a built in method to do that? You mean dF/dt, right? > > from GAsympy import * > from sympy import * > > set_ma

Re: more numpy compatibility

2008-04-01 Thread Ondrej Certik
On Mon, Mar 31, 2008 at 9:42 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > Suggestion - I did not expect this to work and it did not, but it would > be nice if it did > > make_symbols('x y z') #my own function > V = numpy.array([x,y,z]) > print V > dVdx = diff(V,x) > print dVdx > > sh

Re: Sympy module for slax linux

2008-04-01 Thread Ondrej Certik
Hi chu-ching! On Mon, Mar 31, 2008 at 6:23 AM, chu-ching huang <[EMAIL PROTECTED]> wrote: > > Hi all, > > To make a python working environment, I integrated several Python > packages and which were integrated into a mobile slax Linux. Python > modules includes SciPy-0.6, NumPy-1.0.4, VPython-

Re: wildcard symbols

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 2:59 PM, atir ajnopse <[EMAIL PROTECTED]> wrote: > > Hi. > > I'm new to this list and was interested in sympy to use it to help > implement a DSL for audio synthesis. > > I had a question: I would like to have a symbol, say "_" --without the > quotation marks ;-) , whic

Re: parametric derivatives

2008-04-01 Thread Ondrej Certik
On Sun, Mar 30, 2008 at 6:30 PM, Friedrich Hagedorn <[EMAIL PROTECTED]> wrote: > Hello, > > here is my short answer because I have to prepare a presentation > for my current project and I am late. > > I have attached the answer as pdf and latex file. > > By, Friedrich Thanks Friedrich for ans

Re: compiling functions to machine code

2008-04-01 Thread Vinzent Steinberg
Yeah, I tried to use from math import * (to avoid look ups), but I failed somehow. Anyway, here the result of Sage's timeit for evaluating f(1.0r) (finally I got the point of the r :): compiled:625 loops, best of 3: 2.12 µs per loop lambda: 625 loops, best of 3: 15.8 µs per loop fast_fl

Re: compiling functions to machine code

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 3:09 PM, Vinzent Steinberg <[EMAIL PROTECTED]> wrote: > > Yeah, I tried to use from math import * (to avoid look ups), but I > failed somehow. > > Anyway, here the result of Sage's timeit for evaluating f(1.0r) > (finally I got the point of the r :): > > compiled:625

Re: wildcard symbols

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 2:59 PM, atir ajnopse <[EMAIL PROTECTED]> wrote: > > Hi. > > I'm new to this list and was interested in sympy to use it to help > implement a DSL for audio synthesis. > > I had a question: I would like to have a symbol, say "_" --without the > quotation marks ;-) , whic

Re: easy_install and pypi

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 2:19 PM, Colin Gillespie <[EMAIL PROTECTED]> wrote: > > Hi Ondrej, > > Warning: I'm not an expert on pypi or setup.py file, so these are only > suggestions. > > > > > Thanks for noticing. The tests/ directories are our tests, so I don't > > think they should be imported

Re: Parametric Derivative

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 4:18 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > > Ondrej Certik wrote: > > Hi Alan! > > > > On Sun, Mar 30, 2008 at 6:20 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > > >> If F(x,y,z,w) and x=x(t) and y=y(t) here is what I did to calculate > >> df/dt.

Re: easy_install and pypi

2008-04-01 Thread Gael Varoquaux
On Tue, Apr 01, 2008 at 03:49:16PM +0200, Ondrej Certik wrote: > > > Thanks for noticing. The tests/ directories are our tests, so I don't > > > think they should be imported. Why should there by __init__ files in > > > it? > > Could it be because in setup.py you have: > > packages = ['symp

Re: Parametric Derivative

2008-04-01 Thread Alan Bromborsky
Ondrej Certik wrote: > Hi Alan! > > On Sun, Mar 30, 2008 at 6:20 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > >> If F(x,y,z,w) and x=x(t) and y=y(t) here is what I did to calculate >> df/dt. Do you have a built in method to do that? >> > > You mean dF/dt, right? > > >> from GAsy

Re: wildcard symbols

2008-04-01 Thread Sebastian Haase
On Tue, Apr 1, 2008 at 3:31 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Tue, Apr 1, 2008 at 2:59 PM, atir ajnopse <[EMAIL PROTECTED]> wrote: > > > > Hi. > > > > I'm new to this list and was interested in sympy to use it to help > > implement a DSL for audio synthesis. > > > > I had a q

Re: wildcard symbols

2008-04-01 Thread atir ajnopse
dear ondrej, thanks for the quick reply! well, it is in the good direction. Indeed I would need to get rid of the funcion call parenthesis, even if that is not pythonic. I actually thought that _ could be a singleton object which, when its __add__, __mul__, ... are called, returns a subclass of

Re: wildcard symbols

2008-04-01 Thread Ondrej Certik
On Tue, Apr 1, 2008 at 5:06 PM, atir ajnopse <[EMAIL PROTECTED]> wrote: > > dear ondrej, > > thanks for the quick reply! > > well, it is in the good direction. Indeed I would need to get rid of > the funcion call parenthesis, even if that is not pythonic. I actually > thought that _ could be

Re: wildcard symbols

2008-04-01 Thread atir ajnopse
well, it can be made "static" with this: import __builtin__ __builtin__._ = WhatEverYouWant() cheers, atir On Apr 1, 4:35 pm, "Sebastian Haase" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 3:31 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > > On Tue, Apr 1, 2008 at 2:59 PM, atir ajno

Re: Parametric Derivative

2008-04-01 Thread Alan Bromborsky
Ondrej Certik wrote: > On Tue, Apr 1, 2008 at 4:18 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > >> Ondrej Certik wrote: >> > Hi Alan! >> > >> > On Sun, Mar 30, 2008 at 6:20 PM, Alan Bromborsky <[EMAIL PROTECTED]> >> wrote: >> > >> >> If F(x,y,z,w) and x=x(t) and y=y(t) here is what

Re: Google Summer of Code Application

2008-04-01 Thread PhilippStrack
Hi everybody, I have updated my GSOC application Creating a GTK based GUI for Sympy Application for the Google Summer of Code 2008 Philipp Strack <[EMAIL PROTECTED]> Target of this application is to create a lightweight gui for the python based computer algebra system sympy. The GUI sh

Re: compiling functions to machine code

2008-04-01 Thread Mike Hansen
> compiled:625 loops, best of 3: 2.12 µs per loop > lambda: 625 loops, best of 3: 15.8 µs per loop > fast_float: 625 loops, best of 3: 4.54 µs per loop (roughly matches > with yours) > > fast_float seems to be 3.5 times faster than pure Python, this matches > with my other benchmark (whi

Re: Google Summer of Code Application

2008-04-01 Thread Saroj Adhikari
Just few suggestions on your application. Disclaimer: I am not expressing my thoughts about the content/ proceedings of the application/actual-gsoc-work. I am just pointing out things that I think will better your application structure, grammar, and punctuation. > Target of this application is

Re: Google Summer of Code Application

2008-04-01 Thread Ondrej Certik
Hi Philipp! On Wed, Apr 2, 2008 at 12:30 AM, Saroj Adhikari <[EMAIL PROTECTED]> wrote: > > Just few suggestions on your application. > > Disclaimer: I am not expressing my thoughts about the content/ > proceedings of the application/actual-gsoc-work. I am just pointing > out things that I thi

Re: Parametric Derivative

2008-04-01 Thread Friedrich Hagedorn
On Tue, Apr 01, 2008 at 04:30:18PM +0200, Ondrej Certik wrote: > > On Tue, Apr 1, 2008 at 4:18 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > > > > > Ondrej Certik wrote: > > > Hi Alan! > > > > > > On Sun, Mar 30, 2008 at 6:20 PM, Alan Bromborsky <[EMAIL PROTECTED]> > > wrote: > > > > >

Re: Parametric Derivative

2008-04-01 Thread Mateusz Paprocki
Hi, > My question is whether anybody has a better proposal for the name fx in (*)? The same you can achieve with: In [25]: f = a*x + b*c*x*z*w**2*exp(-y) In [26]: h = f.subs({x: x(t), y: y(t)}) In [27]: h.diff(t) Out[27]: d 2 -y(t) d 2 -y(t) d a*──(x(t)

Re: Parametric Derivative

2008-04-01 Thread Friedrich Hagedorn
On Wed, Apr 02, 2008 at 01:45:40AM +0200, Mateusz Paprocki wrote: > Hi, > > > My question is whether anybody has a better proposal for the name fx in (*)? > > The same you can achieve with: > > In [25]: f = a*x + b*c*x*z*w**2*exp(-y) > > In [26]: h = f.subs({x: x(t), y: y(t)}) Oh, this is rea

Re: Parametric Derivative

2008-04-01 Thread Alan Bromborsky
How would you do this is x and y are passed as a list and you did not know their names, ie x and y but rather say they would be vlst[0] and vlst[1] ? > Hi, > > >> My question is whether anybody has a better proposal for the name fx in (*)? >> > > The same you can achieve with: > > In [25

Re: Parametric Derivative

2008-04-01 Thread Friedrich Hagedorn
On Tue, Apr 01, 2008 at 08:40:28PM -0400, Alan Bromborsky wrote: > How would you do this is x and y are passed as a list and you did not > know their names, ie x and y > but rather say they would be vlst[0] and vlst[1] ? Do you mean something like that? In [1]: var('a b c x y z w t') Out[1]: (a

Comments for applications of GSoC2008

2008-04-01 Thread Pan Peng
Hi all, Since the deadline of GSoC2008 has been extended one more week, I think I may refine my applications better. I have submitted two applications and I hope you guys could give me some comments on how to improve them. Thanks! The Optimization module: http://docs.google.com/Doc?id=d