** en python.0**0 cuanto da? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
15th Feb 2020, 7:15 PM
Enrique
Enrique - avatar
8 Answers
+ 3
Here's a good read about the topic. Seems it's not all that clear cut. https://en.m.wikipedia.org/wiki/Zero_to_the_power_of_zero
15th Feb 2020, 9:13 PM
HonFu
HonFu - avatar
+ 1
cualquier número en el grado cero da 1
15th Feb 2020, 7:29 PM
Александр
Александр - avatar
0
bien 1
15th Feb 2020, 7:28 PM
Александр
Александр - avatar
0
I don't know why 0**0 = 1, but if you wonder why 0**0 = 1, but 0/0 != 1, for that I have an answer: a / b = c means: b * c = a Thus 0/0 = x means x * 0 = 0 But no matter which value x is, this would be true. Result of 0/0 can be any value, it can be 10, it can be banana, this makes 0/0 quite useless and program does not know what programmer means with this and raises an error. I don't know why 0**0 = 1.
15th Feb 2020, 8:12 PM
Seb TheS
Seb TheS - avatar
0
0/0!=0 because 0!=1.
15th Feb 2020, 8:50 PM
Enrique
Enrique - avatar
0
Cualquier número x elevado a la cero por definición es 1 si x!=0.
15th Feb 2020, 9:02 PM
Enrique
Enrique - avatar
0
Enrique 0/0 is undefined, not necessarily 1. 8 / 2 = 4 <=> 2 * 4 = 8 15 / 3 = 5 <=> 3 * 5 = 15 0 / 0 = R <=> R * 0 = 0 R can be any number. It could be 1, because 1 * 0 = 0, but not necessarily.
15th Feb 2020, 10:36 PM
Seb TheS
Seb TheS - avatar
0
Ok. 0/0 is undefined But factorial of 0 is 1,then 0/fact(0)= 0
16th Feb 2020, 4:38 PM
Enrique
Enrique - avatar