What is exponentiation with an example | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is exponentiation with an example

18th Aug 2019, 3:33 AM
Akash Chatterjee
2 Answers
+ 1
It means "power". Like 5² is read "5 raised to power 2" Here *5 is the base *2 is the exponent Examples ======== 5**3 = 5*5*5 = 125 3**4 = 3*3*3*3 = 81
18th Aug 2019, 3:44 AM
Dlite
Dlite - avatar
0
The name for (**) this thing is different, in python we call it Power Operator in JavaScript we call it exponentiation operator, introduced in ES 2016 this operator is Equivalent to the Math.pow(), it Just gives you the Power of Some given Number For Example if we want 2**2 the output will be 4. https://www.sololearn.com/Discuss/1935111/how-we-can-do-a-program-of-x-raise-to-n
18th Aug 2019, 5:54 AM
Bug Slayer