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?
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?