Exponentiation | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

Exponentiation

How do I calculate raising powers in maths? 2√ó√ó7

18th Jan 2022, 1:39 AM
biodun
5 Respuestas
+ 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