On Mon, Jan 21, 2008 at 06:54:15AM -0500, Neal Becker wrote:
> 
> On Sunday 20 January 2008, Ondrej Certik wrote:
> > 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, we fixed that in the hg.
> >
> 
> hg tip
> changeset:   1704:75067997d489
> 
> I still see this above behavior.

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

In [4]: sqrt(x**2-3)
Out[4]: ((-3) + x**2)**(1/2)


What's your 'hg parents'? Mine is 75067997d489:

[EMAIL PROTECTED]:~/src/sympy/sympy$ 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

If 'hg parents' != 'hg tip' -- try 'hg update' to update working dir to
the latest revision.


Also, ./setup.py clean might help.

-- 
    Всего хорошего, Кирилл.
    http://landau.phys.spbu.ru/~kirr/aiv/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to