Numerical integration: Difference between revisions

m
→‎{{header|Haskell}}: (tidying string concatenations in the test)
(→‎{{header|Haskell}}: (Adjusted output labelling, to bracket range, and label approximation count))
m (→‎{{header|Haskell}}: (tidying string concatenations in the test))
Line 2,350:
(\(s, e@(f, a, b, n)) -> do
putStrLn $
concat
justifyLeft 20 ' ' ("f(x) = " ++ s) ++
show [a, b]justifyLeft ++20 "' ' ("f(x) ++= show n" ++ " approximationss)"
, show [a, b]
, " ("
, show n
, " approximations)"
]
mapM_
(\(s, integration) ->
9,659

edits