A program that approximates the definite integral of a relation using Riemann Sum approximations.
The input to the program is provided in the file c.in
and requires three lines of input. It should be structured in the format:
<NUM OF POINTS> <TYPE>
<x1> <y1>
<x2> <y2>
...
<xN> <yN>
left-riemann
- Left Riemann Sumright-riemann
- Right Riemann Sumtrapezoidal
- Trapezoidal Rule
Ensure c.in
contains the appropriate input before execution. The output will be written to console.