 Why is 0^0 equals to 1? | Sololearn: Learn to code for FREE!

+1

# Why is 0^0 equals to 1?

+2

This may help you for better explanation- https://brilliant.org/wiki/what-is-00/

+2

Seb TheS That's not embarassing at all. No.

+2

n^0 will always be 1. It's a mathematical rule.

+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

+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

+1

Airree by quick thinking I think thats wrong. 0 ^ n is not always 0. What about 0 ^ (-1), which would be 1/0?

+1

It's undefined , but approaches 1 if we draw y=x^x , just next to 0 on + side.

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.

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.