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 756960 - Wrong value for e^(−0.5)
Wrong value for e^(−0.5)
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
: 757475 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-10-22 12:16 UTC by info.kalsan
Modified: 2016-02-03 10:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description info.kalsan 2015-10-22 12:16:32 UTC
Typing e^(−0.5) in gnome-calculator results in 1.071508607×10³⁰¹ which is a little too much.
Typing the equivalent formula 1÷(e^(0.5)) yields 0.60653066 which would be the correct result.
Comment 1 Alberto Ruiz 2015-10-22 12:43:06 UTC
I can confirm this bug on my end (GNOME 3.18), I will look into it.
Comment 2 Felix Pelletier 2015-11-02 13:10:11 UTC
*** Bug 757475 has been marked as a duplicate of this bug. ***
Comment 3 Alberto Ruiz 2016-01-10 19:44:04 UTC
(In reply to Felix Pelletier from comment #2)
> *** Bug 757475 has been marked as a duplicate of this bug. ***

Fixed the patch you submitted through Github in master and gnome-3-18 at 5722513a0bb1903f5602a55dcfbb1ac7013003aa and 3e1a573bbad302deaf4633120faef1122a5043a9 respectively.

Note that in the future you should submit patches through Bugzilla.

Thanks a lot for your contribution Felix.
Comment 4 Vincent Lefevre 2016-02-03 10:28:23 UTC
FYI, the strange result is due to a bug in MPFR (in addition to the GNOME Calculator bug), which currently handles large integer arguments of mpfr_root very badly. The crash of GNOME Calculator 3.18.3 with 10^(1/10000000000) is also due to this MPFR bug.