Re: Use real numbers only

2008-01-21 Thread Kirill Smelkov
On Mon, Jan 21, 2008 at 09:03:30AM -0500, Neal Becker wrote: hg parents changeset: 1704:75067997d489 tag: tip user:Kirill Smelkov [EMAIL PROTECTED] date:Sat Jan 19 02:38:47 2008 +0300 summary: Or Dvory added to credits hg updated I tried clean, I even

Re: Use real numbers only

2008-01-21 Thread Neal Becker
I did: sudo rm -rf /usr/lib/python2.5/site-packages/sympy rm -rf sympy (my hg clone) hg clone http://hg.sympy.org/sympy/ cd sympy python setup.py build sudo python setup.py install python Python 2.5.1 (r251:54863, Oct 30 2007, 13:45:26) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2 Type

Re: Use real numbers only

2008-01-21 Thread Kirill Smelkov
On Mon, Jan 21, 2008 at 10:41:50AM -0500, Neal Becker wrote: I did: sudo rm -rf /usr/lib/python2.5/site-packages/sympy rm -rf sympy (my hg clone) hg clone http://hg.sympy.org/sympy/ cd sympy python setup.py build sudo python setup.py install python Python 2.5.1 (r251:54863, Oct 30

Re: Use real numbers only

2008-01-21 Thread Neal Becker
On Monday 21 January 2008, Kirill Smelkov wrote: On Mon, Jan 21, 2008 at 10:41:50AM -0500, Neal Becker wrote: I did: sudo rm -rf /usr/lib/python2.5/site-packages/sympy rm -rf sympy (my hg clone) hg clone http://hg.sympy.org/sympy/ cd sympy python setup.py build sudo python

Use real numbers only

2008-01-20 Thread Fabian Steiner
Hello! Is there any way to instruct sympy to use real numbers only? In [1]: from sympy import * In [2]: x = Symbol('x', real=True) In [3]: sqrt(x**2-3) Out[3]: I*(3 - x**2)**(1/2) Why is sqrt(x**2-3) transformed in that way that it uses the imaginary unit? This makes it hard for me to turn

Re: Use real numbers only

2008-01-20 Thread Fabian Steiner
I just noticed that as_expr_orders() is failing at the moment. The following small patch made it work again: --- sympy/core/basic.py.old 2008-01-20 22:14:11.0 +0100 +++ sympy/core/basic.py 2008-01-20 22:14:23.0 +0100 @@ -973,7 +973,7 @@ l1 = [] l2 = []