26 lines
1.3 KiB
Text
26 lines
1.3 KiB
Text
Some computer programming languages are not exactly consistent (with other computer programming languages)
|
|
<br>when ''raising zero to the zeroth power'': <b><big>0<sup>0</sup></big></b>
|
|
|
|
|
|
;Task:
|
|
Show the results of raising zero to the zeroth power.
|
|
|
|
|
|
If your computer language objects to <big> '''0**0''' </big> or <big> '''0^0''' </big> at compile time, you may also try something like:
|
|
x = 0
|
|
y = 0
|
|
z = x**y
|
|
say 'z=' z
|
|
|
|
|
|
'''Show the result here.'''<br>
|
|
And of course use any symbols or notation that is supported in your computer programming language for exponentiation.
|
|
|
|
|
|
;See also:
|
|
* The Wiki entry: [[wp:Exponentiation#Zero_to_the_power_of_zero|Zero to the power of zero]].
|
|
* The Wiki entry: [[wp:Exponentiation#History_of_differing_points_of_view|History of differing points of view]].
|
|
* The MathWorld™ entry: [http://mathworld.wolfram.com/ExponentLaws.html exponent laws].
|
|
** Also, in the above MathWorld™ entry, see formula ('''9'''): <math>x^0=1</math>.
|
|
* The OEIS entry: [https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroth_power The special case of zero to the zeroth power]
|
|
<br><br>
|