Positive fractional power of zero is not undefined
Bug #668512 reported by
Peter Berry
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
summary: |
- Nonzero fractional power of zero is not undefined + Positive fractional power of zero is not undefined |
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 |
To post a comment you must log in.
Obvious correction: 0^n = 0 if n > 0.