The Composite Trapezoidal Rule

Apply The trapezoidal rule to $f(x)=e^x$ in interval of 1.8 and 3.4. (Example py-file: mytrapezoid.py)

Image 5-8b

Figure 4.7: Integration for $f(x)=e^x$ by the trapezoidal rule.
Image trapezoid

Apply The trapezoidal rule to Simple Pendulum to find the period. (Example py-file: simplependulum.py)

Table 4.4: Integration for $\frac {1.0}{\sqrt {1.0-(sin(\theta _0/2)sin(\phi ))^2}}$ by the trapezoidal rule.
\begin{table}\begin{center}
\includegraphics[scale=0.31]{images/simplependulum}
\end{center}
\end{table}