Question: The following algorithm calculates the integral of the function f(x) by using Composite Newton Cotes Formula. Please fill in the blanks. clc clear all

The following algorithm calculates the integral of the function f(x) by using 

The following algorithm calculates the integral of the function f(x) by using Composite Newton Cotes Formula. Please fill in the blanks. clc clear all syms f(x) f(x)=(x^2+1)/(x^2*log(x)); a=3; b=5; m=5; n=4; h=(b-a)/( | t(1)=a; for i=1: t(i+1)=a+i*h; end for i=1:m 1(i)= end double(sum(!))

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!