Pow for faster exponentiation
suggest changemath.pow always converts its arguments to float and returns a float. It is not a faster or more exact substitute for ** on integers. For modular exponentiation, use the three-argument built-in pow(base, exp, mod).
from math import pow
pow(5, 5) # 3125.0
5 ** 5 # 3125
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents