Haskell Power

[Solved] Haskell Power | Swift - Code Explorer | yomemimo.com
Question : Haskell power

Answered by : dominik

-- typically for integers
(^) :: (Num a, Integral b) => a -> b -> a
-- typically for rationals
(^^) :: (Fractional a, Integral b) => a -> b -> a
-- typically for floating-point numbers
(**) :: Floating a => a -> a -> a

Source : https://wiki.haskell.org/Power_function | Last Update : Fri, 26 Jun 20

Answers related to haskell power

Code Explorer Popular Question For Swift