The algorithm below, described in pseudocode, estimates the value of a definite integral using the trapezium rule.
Consider the algorithm implemented with the following inputs.
The value of the variable sum after one iteration of the while loop would be closest to
- 1.281
- 1.289
- 1.463
- 1.617
- 2.136