Hello,

I just got some results that I belive not beeing expected by the average user:


In [6]: x = 1/(b*(1/b - b))
In [7]: x.expand()
Out[7]: 1/(b*(-b + 1/b))


I would have expexted

1/(1-b**2) or something like this.


However, if I enter the denominator separately I get the expected result:

In [9]: y = b*(1/b - b)
In [10]: y.expand()
Out[10]: -b**2 + 1



In [13]: sp.__version__
Out[13]: '0.7.1'


Is this the intended behavior? Does it have to do with assumptions?
(The symbol b comes from a plain sp.symbols('a b c d') which is part of a personal ipython macro)

Best regards,
Bastian.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
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