trapezoidal rule Algorithm

In mathematics, and more specifically in numerical analysis, the trapezoidal rule (also known as the trapezoid rule or trapezium rule) is a technique for estimate the definite integral. The A 2016 paper reports that the trapezoid rule was in purpose in Babylon before 50 BC for integrate the speed of Jupiter along the ecliptic.

trapezoidal rule source code, pseudocode and analysis