[sympy] Re: should we allow using implicit imports?

2008-07-21 Thread Ondrej Certik
Hi, I am sorry I haven't reply yet, I had a draft in my mailbox, but I haven't finish it. On Mon, Jun 2, 2008 at 12:43 PM, Fredrik Johansson [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 11:48 AM, Ondrej Certik [EMAIL PROTECTED] wrote: What do you think Fredrik? Let's use explicit in

[sympy] high school factoring

2008-07-21 Thread Ondrej Certik
Hi, when I was at high school I remember figuring out how to factor this: In [1]: 2*x*y*z + x*y**2 + x*z**2 + y*x**2 + y*z**2 + z*x**2 + z*y**2 Out[1]: 2 2 2 2 2 2 2*x*y*z + x*y + x*z + y*x + y*z + z*x + z*y If you don't know the result, which you

[sympy] Re: high school factoring

2008-07-21 Thread Kirill Smelkov
On Mon, Jul 21, 2008 at 08:12:42PM +0200, Ondrej Certik wrote: Hi, when I was at high school I remember figuring out how to factor this: In [1]: 2*x*y*z + x*y**2 + x*z**2 + y*x**2 + y*z**2 + z*x**2 + z*y**2 Out[1]: 2 2 2 2 2 2 2*x*y*z + x*y + x*z

[sympy] Re: high school factoring

2008-07-21 Thread Fredrik Johansson
On Mon, Jul 21, 2008 at 8:12 PM, Ondrej Certik [EMAIL PROTECTED] wrote: Not bad. However the time varies a lot on my laptop if I repeat it in another ipython session -- from 0.7s (!) to 8s. Can anyone verify this please? You need the latest hg sympy. Why is that? I would guess because factor