Answers for "Haskell power"

0

Haskell power

-- 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
Posted by: Guest on June-19-2020

Browse Popular Code Answers by Language