fixed pow for rational functions.