pearu / sympycore

Automatically exported from code.google.com/p/sympycore
Other
11 stars 1 forks source link

Strange behaviour of Mul #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This says it all:
>>> sqrt(sqrt(5)-1)
((-1) + 5**(1/2))**(1/2)
>>> --sqrt(sqrt(5)-1)
I*(1 - 5**(1/2))**(1/2)

I would expect a and --a to be equal in all cases. I suspect Mul here, doing 
some strange 
optimization.
Running Python 2.5.2 , SymPy 0.5.13-hg.

- Jurjen

Original issue reported on code.google.com by jne...@gmail.com on 28 Mar 2008 at 2:03

GoogleCodeExporter commented 9 years ago
Indeed, thanks Jurjen for the bug report! You reported it to a wrong bug tracker
though - this is the sympycore project developed by Pearu, your bug should go 
here:

http://code.google.com/p/sympy/issues/detail?id=767

:)

Original comment by ondrej.c...@gmail.com on 28 Mar 2008 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by pearu.peterson on 19 Oct 2011 at 11:06