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 634066 - Positive fractional power of zero is not undefined
Positive fractional power of zero is not undefined
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-05 11:03 UTC by Robert Roth
Modified: 2011-04-20 02:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Roth 2010-11-05 11:03:59 UTC
Apparently gcalctool computes fractional powers by way of logarithms. Unfortunately this fails if the base is 0 (the result should always be 1, unless the exponent is 0, in which case it may be undefined, though gcalctool says 0^0=1). For example 0^(2/3) = 1, but gcalctool complains "Logarithm of zero is undefined" (which is correct in the reals, since in y = b^x, for any fixed b != 0 the limit of x as y approaches 0 is negative infinity). Perhaps this should be a special case.

Forwarded from downstream (Ubuntu) https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/668512
Comment 1 Robert Ancell 2011-04-20 02:25:37 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.