Updated `diff` of `pow` to use `log`