After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635318 - incorrect results of tanh
incorrect results of tanh
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.32.x
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-19 23:01 UTC by Luca Falavigna
Modified: 2010-11-22 10:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Falavigna 2010-11-19 23:01:22 UTC
Forwarded from http://bugs.debian.org/604032

gcalctool provides wrong results for the hyperbolic tangent function (tanh).
Given the following input:
  tanh 0,1
the following is displayed:
  0,549833997
while the correct answer should be:
  0,099667995
(as calculated on a TI-30Xa calculator and confirmed by other engines).



A patch is provided at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=604032#10
Comment 1 Fabio Durán Verdugo 2010-11-21 23:25:50 UTC
yes I can confirm.
Comment 2 Robert Ancell 2010-11-22 10:14:10 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.