Question: Task 7 Part 1 The diagram below shows how the trapezius rule is used to divide a plot into ' n ' trapezoids which are

Task 7
Part 1
The diagram below shows how the trapezius rule is used to divide a plot into 'n' trapezoids which are then added together to obtain an estimate of the area under the graph (i.e. the integral of the function).
trapezium.jpg
Write a code that uses the trapezoidal method to calculate the area under the a plot of f(x)=cos(x3+1) between 10 and 0. The code should be written from scratch, rather than using a preexisting function like trapz. Choose a suitable value for 'h' and justify your choice.
Show a plot of the function and comment on whether your result is reasonable.
In[1]:
trapezium.jpg
jpg
ous
Task 7 Part 1 The diagram below shows how the

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 Programming Questions!