You are viewing a single comment's thread. Return to all comments →
Using unbounded arrays
eToX = \x -> sum $ take 10 $ map (\n -> x^n / fromIntegral (product [1..n])) [0..] main = interact $ unlines . map show . map (eToX . read) . tail . words
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 →
Using unbounded arrays