Example: Pi
This computes the value of pi by numeric integration of a function,
using the rectangle rule. It demonstrates
- more arithmetic
- more reductions
Here's what the function looks like, and roughly what the rectangles might look like for the integration in this program:
no next
prev...
begin lecture again...