0^0=0

Bug #382321 reported by Ansus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE Utilities
Fix Released
Undecided
Unassigned
kdeutils (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

KCalc gives 0^0=0.

Pretty elaborate summary on the problem is available here:
http://en.wikipedia.org/wiki/Exponentiation#Zero_to_the_zero_power

In short: available tools either return 1 "for convenience" or some sort of error indicating indeterminate value.

Ansus (neptunia)
description: updated
Revision history for this message
slamdunk (antongiulio05) wrote :

gcalctool in jaunty returns 1 :)

description: updated
description: updated
Ansus (neptunia)
Changed in kdeutils (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

This bug needs to be forwarded to the KDE bug tracker at https://bugs.kde.org if it has not been done so already. For the person who forwards this, please also paste the link to the KDE bug here so that it can be tracked in this bug report.

Changed in kdeutils (Ubuntu):
importance: Undecided → Low
Revision history for this message
Myriam Schweingruber (myriam) wrote :

This appears to be solved in KDE 4.2.85 (aka beta1), KCalc correctly states 0^0=nan (not a number aka undefined)

For those falling into the trap: Google states 0^0=1..., so does gcaltool, but there is no real consensus about the matter, as even Math faculties around the globe give contradictory results...

Conclusion: there is *no* consensus amongst the scholars. and this discussion is more than 150 years old, so leaving it undefined is certainly more secure than a definition on which there is no agreement.

Revision history for this message
Myriam Schweingruber (myriam) wrote :

Fix released upstream and in KDE 4.2.85

Changed in kdeutils (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Closing unused upstream bugwatch.

Changed in kdeutils:
status: New → Fix Released
Ansus (neptunia)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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