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 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
Get step-by-step solutions from verified subject matter experts
