Consider the following function and its definite integral from -3 to 3 as evaluated by the trapezoidal rule:
6
3
2
0 -3
-2
-1
0
1
2
3
Compute the function's integral as follows using the definition of the trapezoidal rule presented in class. Use steps of h=1. The first evaluation of f will be at -3, then -2, then -1 and so on.
Hint: The function will evaluate for the first few samples as follows:
f(3.00) = 3.405430
f(-2.00) = 5.277676
f(-1.00) = 5.210342
f(0.00) = 4.834871