You are viewing a single comment's thread. Return to all comments →
ex :: Double -> Double
ex x = sum [x^n / fromIntegral (product [1..n]) | n <- [0..] :: [Int]]
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 →
ex :: Double -> Double
ex x = sum [x^n / fromIntegral (product [1..n]) | n <- [0..] :: [Int]]