Positive fractional power of zero is not undefined

Bug #668512 reported by Peter Berry
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GCalctool
Fix Released
Medium
gcalctool (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gcalctool

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.

Related branches

Revision history for this message
Peter Berry (pwberry) wrote :

Obvious correction: 0^n = 0 if n > 0.

Revision history for this message
flipefr (flipefr) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in gcalctool (Ubuntu):
status: New → Confirmed
Revision history for this message
flipefr (flipefr) wrote :

I can reproduce it as you say, thanks again for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Peter Berry (pwberry)
summary: - Nonzero fractional power of zero is not undefined
+ Positive fractional power of zero is not undefined
Revision history for this message
Robert Roth (evfool) wrote :

Forwarded upstream to GNOME, see https://bugzilla.gnome.org/show_bug.cgi?id=634066.

Changed in gcalctool:
importance: Unknown → Medium
status: Unknown → New
Changed in gcalctool (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Changed in gcalctool (Ubuntu):
status: Triaged → Fix Committed
Changed in gcalctool:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcalctool - 6.0.1~git20110421-0ubuntu1

---------------
gcalctool (6.0.1~git20110421-0ubuntu1) natty; urgency=low

  * New upstream release
    - Fixes (LP: #756277) (LP: #760536) (LP: #760718) (LP: #668512)
      (LP: #755820)
 -- Robert Ancell <email address hidden> Thu, 21 Apr 2011 18:11:46 +1000

Changed in gcalctool (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.