aherbert commented on pull request #84: URL: https://github.com/apache/commons-numbers/pull/84#issuecomment-680710174
`0^0` is undefined. Here we support returning 1 as described in this Wikipedia article: [Zero_to_the_power_of_zero](https://en.wikipedia.org/wiki/Zero_to_the_power_of_zero) Perhaps add a comment: ``` <p>Special cases: <ul> <li>{@code k^0} returns {@code 1} (including {@code k=0}) <li>{@code k^1} returns {@code k} (including {@code k=0}) <li>{@code 0^0} returns {@code 1} <li>{@code 0^e} returns {@code 0} <li>{@code 1^e} returns {@code 1} <li>{@code (-1)^e} returns {@code -1 or 1} if {@code e} is odd or even </ul> ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
