Comment #2 on issue 4020 by [email protected]: Wrong integral for tanh
http://code.google.com/p/sympy/issues/detail?id=4020
Look here:
http://www.sympygamma.com/input/?i=tanh%28x%29.integrate%28x%29
Yeah, diff and simplify gives me tanh too, but tanh always less then one,
which means that log(tanh - 1) always a complex number.
The problem is, that my ipython gives me from time to time wrong answer and
right one. First I'm getting
x-log(tanh(x)+1)
which is right, but then restarting kernel and get
-x-log(tanh(x)-1)
Attaching notebook and screenshot.
python-sympy 0.7.3-1
python-scipy 0.12.0-1
python-numpy 1.7.1-2
ipython 1.1.0-1
python 3.3.2-2
ArchLinux 3.10.10-1-ARCH x86_64
Attachments:
Численные методы. Лабораторная 1.ipynb 313 KB
screenshot.png 38.5 KB
screenshot2.png 37.8 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues.
For more options, visit https://groups.google.com/groups/opt_out.