Re: Pretty printing with latest sympy

2008-04-09 Thread Gael Varoquaux
On Wed, Apr 09, 2008 at 10:22:01PM +0200, Mateusz Paprocki wrote: > [EMAIL PROTECTED] ~/hg/sympy $ ipython -nobanner > In [1]: from sympy.interactive import * > In [2]: init_ipython() > In [3]: solve([x+y-z, x-y+2*z],[x,y]) > Out[3]: > ⎧ 3*z -z⎫ > ⎨y: ───, x: ──⎬ > ⎩2 2 ⎭ Rocks!

Re: Pretty printing with latest sympy

2008-04-09 Thread Mateusz Paprocki
> My original question remains, though, how can I enable multiline pretty > printing in vanilly ipython? It does work in isympy. There are two ways to achieve this: [1] init_ipython() from sympy.interactive [2] ipythonrc-sympy from data/IPython (you will need to copy it manually into ~/.ipyth

Re: Pretty printing with latest sympy

2008-04-09 Thread Gael Varoquaux
On Wed, Apr 09, 2008 at 09:50:49PM +0200, Mateusz Paprocki wrote: > it seems that your are mixing old SymPy 0.4.2 with latest isympy. Strange. I am probably getting all mixed up with virtualenv again. You are probably right that the wrong versions get imported, but I don't undestand where. > isy

Re: Pretty printing with latest sympy

2008-04-09 Thread Mateusz Paprocki
Hi Gael, it seems that your are mixing old SymPy 0.4.2 with latest isympy. isympy will import globally availably sympy module (eg. /usr/share/python2.5/ ...). However if you would cd to hg root directory and run ./bin/isympy then it will import locally available module tree, eg.: [EMAIL PROTECT

Pretty printing with latest sympy

2008-04-09 Thread Gael Varoquaux
Hi guys, I am being stupid (and not reading the manual :->): I want to show the nice pretty printing of sympy in ipython. To get the nicest I check out the hg trunk. But I can't get it working (no multiline output). I must be missing some switch. On a side note, I must be missing some dependenc

logarithm expansion

2008-04-09 Thread Abderrahim Kitouni
Hi, In sympy/functions/elementary/tests/test_exponential.py [1](see http://ln-s.net/1nKM if you don't have a local clone) on line 98: the test is XFAIL but the issue which it points to is solved. After fixing _eval_expand_complex (I'm sending the patch to sympy-patches) I tried to comment the @XF

"Wild() " class

2008-04-09 Thread Pan Peng
I donot quite get the meaning of "Wild" class, If I have an equation, say, a*f(x).diff(x,x) + b*diff(f(x), x) + c*f(x) +d =0 Does a = Wild('a', exclude=[f(x)]) b= Wild('b', exclude=[f(x)]) c = Wild('c', exclude=[f(x)]) give the coefficients of f(x).diff(x,x) , diff(f(x), x) , f(x) , respectiv