{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Approximate Integration: #\n", "\n", "
Implementations of the following numerical integration techniques are given below:\n", "Left-hand Riemann sum,\n", "Right-hand Riemann sum,\n", "Midpoint Rule,\n", "Trapezoid Rule, and\n", "Simpson's Rule.\n", "Modify and evaluate the python code as you wish.
\n", "\n", "Each function takes as input a\n", "function $f$, an interval $[a,b]$, and an integer $n$. Recall $\\Delta x = \\frac{b-a}{n}$ and $x_i = a+i\\Delta x$ for each $0\\le i \\le n$.
\n", "\n", "