Re: google code hosting broken again

2008-04-18 Thread Kirill Smelkov
On Wed, Apr 16, 2008 at 11:26:16PM +0200, Ondrej Certik wrote: On Wed, Apr 16, 2008 at 2:22 PM, Kirill Smelkov [EMAIL PROTECTED] wrote: Hi, On Wed, Apr 16, 2008 at 01:32:14PM +0200, Ondrej Certik wrote: [...] You can download sympy from Debian:

Re: pPrint an equation

2008-04-18 Thread Friedrich Hagedorn
On Fri, Apr 18, 2008 at 10:53:41AM +0200, Friedrich Hagedorn wrote: On Thu, Apr 17, 2008 at 04:02:54PM +0200, Ondrej Certik wrote: On Thu, Apr 17, 2008 at 3:48 PM, Kirill Smelkov [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 03:24:33PM +0200, Ondrej Certik wrote: On

Re: pPrint an equation

2008-04-18 Thread Friedrich Hagedorn
On Thu, Apr 17, 2008 at 04:02:54PM +0200, Ondrej Certik wrote: On Thu, Apr 17, 2008 at 3:48 PM, Kirill Smelkov [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 03:24:33PM +0200, Ondrej Certik wrote: On Thu, Apr 17, 2008 at 3:19 PM, Fredrik Johansson [EMAIL PROTECTED] wrote:

Re: pPrint an equation

2008-04-18 Thread Ondrej Certik
On Fri, Apr 18, 2008 at 11:20 AM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: On Fri, Apr 18, 2008 at 10:53:41AM +0200, Friedrich Hagedorn wrote: On Thu, Apr 17, 2008 at 04:02:54PM +0200, Ondrej Certik wrote: On Thu, Apr 17, 2008 at 3:48 PM, Kirill Smelkov [EMAIL PROTECTED]

Re: One more task for term.subs()

2008-04-18 Thread Ondrej Certik
On Thu, Apr 17, 2008 at 10:45 AM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: Hello again, I have one more task for subs. Supose one have a term and a function like this: In [1]: fxy = f(x) + f(y) In [2]: g = Lambda(x, x + x**2) And now I want to do easily In [4]: fxy.subs(f,

Re: Bug in collect()

2008-04-18 Thread Ondrej Certik
On Thu, Apr 17, 2008 at 6:23 PM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: Hello, this term manipulation with collect() is wrong: In [1]: y*z**2 + z**2*x*y Out[1]: 22 y*z + x*y*z In [2]: collect(y*z**2 + z**2*x*y, y*z) Out[2]: 2 2 y *z *(1 + x) Indeed!

Re: Reverse the subs

2008-04-18 Thread Ondrej Certik
On Thu, Apr 17, 2008 at 11:59 AM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: Hello, I think this should be done in the reverse order: In [15]: (x+y).subs([(y,x**2), (x,2)]) Out[15]: 2 2 + x In [16]: (x+y).subs([(x,2), (y,x**2)]) Out[16]: 6 I think so too. This is now:

Re: One more no-eval

2008-04-18 Thread Ondrej Certik
On Wed, Apr 16, 2008 at 4:16 PM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 03:48:20PM +0200, Ondrej Certik wrote: That's the automatic evaluation: In [1]: L, C = symbols(LC) In [2]: sqrt(L/C) Out[2]: ⎽⎽⎽ ╲╱ L ─ ⎽⎽⎽ ╲╱ C In

Re: Function evaluation confusion (and numerics)

2008-04-18 Thread Vinzent Steinberg
On 17 Apr., 15:58, Ondrej Certik [EMAIL PROTECTED] wrote: BTW, I think we should also implement the rest of the useful functions from numpy in sympy as well -- it'd be useful to have it in pure python and those who want speed too will just install numpy and it'd have the same

Re: One more no-eval

2008-04-18 Thread Friedrich Hagedorn
On Fri, Apr 18, 2008 at 03:12:03PM +0200, Ondrej Certik wrote: On Wed, Apr 16, 2008 at 4:16 PM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 03:48:20PM +0200, Ondrej Certik wrote: That's the automatic evaluation: In [1]: L, C = symbols(LC) In [2]:

Re: cookbook for partial differential equation manipulation: questions/bug?

2008-04-18 Thread Friedrich Hagedorn
On Fri, Apr 18, 2008 at 01:36:40PM -0700, d wrote: just some basic follow-up: (1) regarding the subscripting: (1a) Ondrej's output on my browser is: In [5]: Symbol(F_x) Out[5]: Fₓ Thats nice, but In [165]: Symbol('F_B') Out[165]: F_B dont work. Friedrich

Re: cookbook for partial differential equation manipulation: questions/bug?

2008-04-18 Thread Kirill Smelkov
On Fri, Apr 18, 2008 at 10:55:11PM +0200, Friedrich Hagedorn wrote: On Fri, Apr 18, 2008 at 01:36:40PM -0700, d wrote: just some basic follow-up: (1) regarding the subscripting: (1a) Ondrej's output on my browser is: In [5]: Symbol(F_x) Out[5]: Fₓ Thats nice, but In

Re: Reverse the subs

2008-04-18 Thread Kirill Smelkov
On Fri, Apr 18, 2008 at 11:45:57PM +0200, Friedrich Hagedorn wrote: On Fri, Apr 18, 2008 at 03:09:39PM +0200, Ondrej Certik wrote: On Thu, Apr 17, 2008 at 11:59 AM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: Hello, I think this should be done in the reverse order: