help with array
- by JohnWong
You will write a program that
evaluates the integral of sin(x) using
the left-hand rectangle rule with 2000
subintervals, over 10 intervals. The
intervals to test are [0, 1), [1, 2),
…, [8, 9), [9, 10). You will declare
an array of type double that can hold
10 elements, and you will use this
array to hold all 10 results you get
from evaluating each interval.
I am in testing my code, what should be the output?
For example, [0, 1)? Any idea?
Thanks.