trapeze a b h = (a + b) / 2 * h

integration :: (Double -> Double) -> Double -> Double -> Double

integration f a b = undefined

main = putStrLn $ show $ trapeze 1 1 1

Изменить пасту