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

Recommended Answers

All 2 Replies

Forgot to copy the whole assignment?

hazelkahn
So we don't delete all your posts as junk, can you please explain what you are trying to do. Do you want solutions to these exercises? Are you proposing them as good exercises for learners to try? Something else?

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.