Am 31.03.2015 um 15:06 schrieb Arnaud Usciati:
Hello everybody,

I tried values with acosh function and I found an issue.
Suppose x = symbols('x', real=True) and f = lambda x: acosh(-x).

Just a heads-up: the x inside the lambda is unrelated to the symbol x.

But f(x) returns -acosh(x) instead of acosh(-x) !

I did a bit more testing and found I wouldn't need f, or the real=True assumption on x:

$ python
Python 2.6.9 (unknown, Dec 26 2014, 22:51:25)
[GCC 4.8.2] on linux3
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import Symbol, acosh
>>> x = Symbol('x')
>>> acosh(-x)
-acosh(x)

This looks indeed like a bug to me.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/551AFA3A.8060302%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to