Why is 0^0 equals to 1? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is 0^0 equals to 1?

25th Jun 2019, 4:54 PM
Rahul Mahtolia
Rahul Mahtolia - avatar
9 Answers
+ 2
This may help you for better explanation- https://brilliant.org/wiki/what-is-00/
25th Jun 2019, 5:04 PM
Sachin Artani
Sachin Artani - avatar
+ 2
Seb TheS That's not embarassing at all. No.
25th Jun 2019, 5:52 PM
Airree
Airree - avatar
+ 2
n^0 will always be 1. It's a mathematical rule.
26th Jun 2019, 9:05 AM
Maxim Balakirev
Maxim Balakirev - avatar
+ 1
In javascript (I'm guessing), the laws of math aren't as strict, so it lets things like this to happen, but other things too: Infinity is a number, you can divide by 0, -0 exists, and so on
25th Jun 2019, 4:58 PM
Airree
Airree - avatar
+ 1
Seb TheS Well my math teacher taught me every power of 0 is 0 :) Because 0 ^ n = 0 for all numbers, it can be reasoned that it would also be true for 0 ;) (Also n ^ 0 = 1 for all numbers (except 0), not just positive integers
25th Jun 2019, 5:46 PM
Airree
Airree - avatar
+ 1
Airree by quick thinking I think thats wrong. 0 ^ n is not always 0. What about 0 ^ (-1), which would be 1/0?
25th Jun 2019, 5:50 PM
Seb TheS
Seb TheS - avatar
+ 1
It's undefined , but approaches 1 if we draw y=x^x , just next to 0 on + side.
7th Sep 2019, 6:38 PM
Parv Chugh
Parv Chugh - avatar
0
Technically any number to the power of 0 is equal to 1. 0^0 is expected to give an error but instead it follows the previous rule resulting in a 1.
25th Jun 2019, 5:06 PM
Mo Hani
Mo Hani - avatar
0
Well my math teacher taught me negative exponenting with similar table:: 2^3 = 8 = 4 * 2 2^2 = 4 = 2 * 2 2^1 = 2 = 1 * 2 2^0 = 1 = 1/2 * 2 2^-1 = 1/2 = 1/4 * 2 Because n^0 = 1 for all positive integer, it can be reasoned that it would also be true for 0. Anyways this does not really prove 0^0 to 1. But we can believe it is true until better proof is found.
25th Jun 2019, 5:42 PM
Seb TheS
Seb TheS - avatar