GNOME Bugzilla – Bug 756960
Wrong value for e^(−0.5)
Last modified: 2016-02-03 10:28:23 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.
I can confirm this bug on my end (GNOME 3.18), I will look into it.
*** Bug 757475 has been marked as a duplicate of this bug. ***
(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.
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.