You are viewing a single comment's thread. Return to all comments →
(^^) Is also an option, since we are dealing with Integer exponents.
(^^) :: (Fractional a, Integral b) => a -> b -> a
(**) is mostly for floats
(**) :: Floating a => a -> a -> a
There's some nice info on the link below, also. https://wiki.haskell.org/Power_function
Seems like cookies are disabled on this browser, please enable them to open this website
Evaluating e^x
You are viewing a single comment's thread. Return to all comments →
(^^) Is also an option, since we are dealing with Integer exponents.
(**) is mostly for floats
There's some nice info on the link below, also. https://wiki.haskell.org/Power_function