Discussion:
0^0?
(too old to reply)
Adam Bertrand
2005-01-16 16:30:07 UTC
Permalink
Should we assume this to be one, or throw an exception since this is an
indeterminate form?
Shimin Li
2005-01-17 15:12:40 UTC
Permalink
By the specification of method "power", an appropriate error must be thrown
if raising a zero to a non-positive interger. Since zero is a non-positive
integer, you have to throw an exception here.

Shimin Li
Post by Adam Bertrand
Should we assume this to be one, or throw an exception since this is an
indeterminate form?
Douglas Harder
2005-01-17 19:20:07 UTC
Permalink
I have added a clarification to the specification. I.e., (0, -1, -2, ...)

Douglas
Post by Shimin Li
By the specification of method "power", an appropriate error must be thrown
if raising a zero to a non-positive interger. Since zero is a non-positive
integer, you have to throw an exception here.
Shimin Li
Post by Adam Bertrand
Should we assume this to be one, or throw an exception since this is an
indeterminate form?
Continue reading on narkive:
Loading...