RosettaCodeData/Task/Exponentiation-operator/Haskell/exponentiation-operator-3.hs

3 lines
59 B
Haskell
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
(**) :: Floating a => a -> a -> a
x ** y = exp (log x * y)