chickadee » math-utils » trapezoid

trapezoid F A Bprocedure

Returns a function to calculate the area under F between A & B using the Trapezoid Rule. The function takes the number of estimations as an argument, larger for a "better" result.

F
(number -> number) ; function to integrate
A
number ; lower bound
B
number ; upper bound