Integral Calculus in Haskell
We started learning Haskell in Professor Misra’s class. Since this is the first functional programming language I have been exposed to, I decided to write an integrator.
small_dx = 0.0001
– integrate a function f from a to b
integrate f a b = integrateGen f a b small_dx 0
– Generalize the integrate function to take
– advantage of [...]