Exponentiation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Exponentiation

How do I calculate raising powers in maths? 2××7

18th Jan 2022, 1:39 AM
biodun
5 Answers
+ 6
Calculating raising power is as simple as multiplying the base number itself. 2⁷ = 2×2×2×2×2×2×2
18th Jan 2022, 2:07 AM
Simba
Simba - avatar
+ 3
You can write it as:- 2**7 In Python.
18th Jan 2022, 2:33 AM
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika)
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika) - avatar
+ 2
** sign indiacating power in python You write in python code Print(2**7) And you get 128 in output
18th Jan 2022, 10:21 AM
SK SANOWAR
+ 2
+ is for addition - is for subtraction * is for multiplication ** is for exponential / is for exact division // is for quotient % is for remainder You can see others on internet
18th Jan 2022, 5:42 PM
Hellock
+ 1
biodun if you mean specifically to use base 2 with a positive integer power, then the fastest way is to left shift a 1 bit. The bitwise left shift operator << is almost universal in computer languages. 2^n = 1<<n
18th Jan 2022, 2:52 AM
Brian
Brian - avatar