Write a function sin Left(a, b, k) that estimates the area under the sin function in the interval from a to b on the x-axis (where a≤b) by dividing the interval intoksub-intervals and adding up the areas of the rectangles in each sub-interval. The height of a rectangle in a sub-interval is equal to the value of the sin function at the starting point of the sub-interval. Write a similar function sinRight(a, b, k) the only difference being that the height of a rectangle in a sub-interval is equal to the value of the sin function at the end-point of the sub-interval
hazelkahn -3 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.