Computes the power to the given value.