for
Loops
for
Loops in Python
- State the syntax for
for
loops in Python.
- Use
for
loops to loop over range()
objects.
- Use
for
loops to loop over arbitrary list
s.
for
Loops for Sums and Products
- Use
for
loops to compute partial sums and products.
Approximating \(\pi\) via Taylor Series
- Define the arctangent of a length ratio.
- Relate the arctangent of a length ratio to the tangent of an angle.
- Sketch a graph of the arctangent function, identifying its horizontal asymptotes.
- Explain how the Taylor series expansion of \(\arctan x\) about \(x_{0} = 0\) can be used to approximate \(\pi\).
Quadrature
- Explain the basic idea behind how numerical quadrature is used to approximate definite integrals.
- Sketch a graphical representation of the following quadrature rules:
- left riemann sum
- right riemann sum
- midpoint rule
- trapezoidal rule
- Give the expressions for the above quadrature rules.
- Implement the above quadrature rules using
for
loops.