RosettaCodeData/Task/Numerical-integration/Haskell/numerical-integration-1.hs
2023-07-01 13:44:08 -04:00

1 line
52 B
Haskell

approx f xs ws = sum [w * f x | (x,w) <- zip xs ws]