Did a more intelligent job of raising a double to an integer power