+ 1
Exponentiation meaning?
python programing
2 Respuestas
+ 8
It means calculating the *power* of a number. For example below find exponents of the number 2:
2¹ = 2
2² = 2*2 = 4
2³ = 2*2*2 = 8
2⁴ = 2*2*2*2 = 16
2ⁿ = 2*2*2*...*2 (n times)
In Python the notation is x**n, which equals xⁿ
In other languages it is either ** or ^ symbol or a special method, like pow(x, y)
+ 2
raising one number to the power of another