hg server down?

2008-01-20 Thread Neal Becker
hg pull -u pulling from http://hg.sympy.org/sympy/ abort: HTTP Error 500: Internal Server Error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.

Re: hg server down?

2008-01-20 Thread Kirill Smelkov
Neal, On Sun, Jan 20, 2008 at 09:51:11AM -0500, Neal Becker wrote: > > hg pull -u > pulling from http://hg.sympy.org/sympy/ > abort: HTTP Error 500: Internal Server Error Indeed, thanks for reporting it! While Ondrej is on mountains, I've created a mirror so that you can clone it: http://lan

Re: is_real for cos

2008-01-20 Thread Kirill Smelkov
Hi Adh, On Sat, Jan 19, 2008 at 03:20:36PM -0800, [EMAIL PROTECTED] wrote: > > In [15]: x, y, z = symbols('xyz', real=True) > > In [16]: exp(I*x).expand(complex=True) > Out[16]: I*sin(x) + cos(x) > > In [17]: re(_) > Out[17]: re(cos(x)) > > In [18]: im(__) > Out[18]: im(cos(x)) + sin(x) > >

Re: hg server down?

2008-01-20 Thread Ondrej Certik
On Jan 20, 2008 5:58 PM, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > > Neal, > > On Sun, Jan 20, 2008 at 09:51:11AM -0500, Neal Becker wrote: > > > > hg pull -u > > pulling from http://hg.sympy.org/sympy/ > > abort: HTTP Error 500: Internal Server Error > > Indeed, thanks for reporting it! > > Wh

Re: Use real numbers only

2008-01-20 Thread Ondrej Certik
On Jan 20, 2008 8:25 PM, Fabian Steiner <[EMAIL PROTECTED]> wrote: > > 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) It doesn't do that anymore,

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 t

Re: Use real numbers only

2008-01-20 Thread Fabian Steiner
Hello! On 20 Jan., 21:03, "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > [...] > It doesn't do that anymore, we fixed that in the hg. > > In [1]: x = Symbol('x', real=True) > > In [2]: sqrt(x**2-3) > Out[2]: >⎽ > ╱ 2 > ╲╱ -3 + x > > In [3]: Basic.set_repr_level(1) > Out[3]: 2 >

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 = []

Re: is_real for cos

2008-01-20 Thread Saroj
On Jan 20, 11:28 am, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > Hi Adh, Forgive my email address, that's part of my last name. My name is Saroj. I didn't realize my nickname was my email address. On adding to asin and acos, we should at least check whether the value passed lies between -1 and

Re: Use real numbers only

2008-01-20 Thread Ondrej Certik
On Jan 20, 2008 10:17 PM, Fabian Steiner <[EMAIL PROTECTED]> wrote: > > 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:1

SymPy not doing what I expect, min/max of variables

2008-01-20 Thread Mark Pleszkoch
This is what I am doing: >>> from sympy import * >>> x = Symbol("x",ispositive=True) >>> y = Symbol("y",isnegative=True) >>> min(x,y) x >>> max(x,y) y >>> min(y,0) 0 >>> max(y,0) y I'm guessing that SymPy views the symbols x and y as formal variables, e.g., formal variables for creating a ring

Re: is_real for cos

2008-01-20 Thread Kirill Smelkov
Hi Saroj :) On Sun, Jan 20, 2008 at 03:05:25PM -0800, Saroj wrote: > On Jan 20, 11:28 am, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > > Hi Adh, > Forgive my email address, that's part of my last name. My name is > Saroj. I didn't realize my nickname was my email address. Sorry about that. The fi