Question: Exercise 2 . 5 6 . ( * * * * * * * * * ) The definite integral of a function f ,

Exercise 2.56.(*********)
The definite integral of a function f, defined as abf(x)dx, produces the area under the curve of f on the interval a,b. The thing is, though, integrals are defined in terms of Riemann summations, which provide estimations on the area under a curve. Riemann sums approximate the area by creating rectangles of a fixed width , as shown in 2.7 for an arbitrary function
Conditionals, Recursion, and Loops
64
f. Left-Riemann, right-Riemann, and midpoint-Riemann approximations define the focal point, i.e., the height, of the rectangle. Notice that, in Figure 2.7, we use a midpoint-Riemann sum with =0.2, in which the collective sum of all the rectangle areas is the Riemann approximation. Your job is to use this idea to approximate the area of a circle.
Figure 2.7: Midpoint-Riemann Approximation of a Function
Design the double circleArea(double r, double delta) method, which receives a radius r and a delta . It computes (and returns) a left/right-Riemann approximation of the area of a circle. Hint: if you compute the left/right-Riemann approximation of one quadrant, you can very easily obtain an approximation of the total circle area. We illustrate this hint in Figure 2.8 where =0.5 and its radius r=2. Note that the approximated area will vary based on the chosen Riemann approximation. ?1 Further note that no calculus knowledge is necessary to solve this exercise.
Figure 2.8: Right-Riemann Approximation of a Function
?1A left-Riemann sum under-approximates the area, whereas a right-Riemann sum provides an over-approximation. A midpoint approximation uses the average between the left and right approximations. It should be noted that, in the general case, these statements do not hold as they depend on the interval we integrate our function over.
 Exercise 2.56.(*********) The definite integral of a function f, defined as

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!