Bug#604032: gcalctool: incorrect results of tanh
Jaromír Karmazín
debian_bts at ramus.wz.cz
Fri Nov 19 15:09:11 UTC 2010
Package: gcalctool
Version: 5.30.2-1
Severity: normal
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).
Oddly, the inverse hyperbolic tangent of 0,099667995 yields 0,1 as expected,
while the same for 0,549833997 yields 0,618143348.
Note that the comma ',' serves as the decimal point in my locale and causes
no problems otherwise.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gcalctool depends on:
ii gconf2 2.28.1-6 GNOME configuration database syste
ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
ii libgconf2-4 2.28.1-6 GNOME configuration database syste
ii libglib2.0-0 2.24.2-1 The GLib library of C routines
ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface
ii libpango1.0-0 1.28.3-1 Layout and rendering of internatio
ii libxml2 2.7.8.dfsg-1 GNOME XML library
Versions of packages gcalctool recommends:
ii gnome-icon-theme 2.30.3-2 GNOME Desktop icon theme
ii gvfs 1.6.4-2 userspace virtual filesystem - ser
ii yelp 2.30.1+webkit-1 Help browser for GNOME
gcalctool suggests no packages.
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list