RosettaCodeData/Task/Zero-to-the-zero-power/Haskell/zero-to-the-zero-power.hs
2023-07-01 13:44:08 -04:00

11 lines
173 B
Haskell

import Data.Complex ( Complex((:+)) )
main :: IO ()
main = mapM_ print [
0 ^ 0,
0.0 ^ 0,
0 ^^ 0,
0 ** 0,
(0 :+ 0) ^ 0,
(0 :+ 0) ** (0 :+ 0)
]