Calculates the exponentiation of a number or a function to the power of a number.