How does exponentiation work | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How does exponentiation work

how does exponentiation work

13th Feb 2017, 7:57 PM
Arshan Sheikh
Arshan Sheikh - avatar
2 Réponses
+ 2
You can use math.pow( num1, num2) or num1**num2 in python. x = 4**5 x = 4 * 4 * 4 * 4 * 4 x = 1024 # x = math.pow(4, 5) would give the same result, but with a decimal 1024.0 # don't forget to import math
13th Feb 2017, 8:16 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Ohh exponent mean 4^5
31st May 2017, 4:47 PM
Irfan Ahmadi
Irfan Ahmadi - avatar