Jump to content

Zero to the zero power: Difference between revisions

m
→‎{{header|Haskell}}: Tidied, updated output.
(Added Golfscript implementation)
m (→‎{{header|Haskell}}: Tidied, updated output.)
Line 661:
 
=={{header|Haskell}}==
<syntaxhighlight lang="haskell">import Data.Complex ( Complex((:+)) )
 
main =:: doIO ()
main = mapM_ print $ 0 ^ 0[
print $ 0. 0 ^ 0,
print $ 0.0 ^^ 0,
print $ 0 **^^ 0,
print $ (0 :+ 0) ^** 0,
print $ (0 :+ 0) **^ (0 :+ 0)</syntaxhighlight>,
(0 :+ 0) ** (0 :+ 0)
]</syntaxhighlight>
{{out}}
<pre>1
1
1.0
1.0
1.0
1.0 :+ 0.0
NaN1.0 :+ NaN0.0</pre>
</pre>
 
=={{header|HolyC}}==
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.