The MATLAB code below represents which integration rule n3 h

The MATLAB code below represents which integration rule n=3; h=(xn-x0)/n; x1=x0+h; x2=x1+h; x_3=xn; Integrate=(3*h/8)*(f(x0) +3*f(x1) +3*f(x2)+ f(x3)); Choices

Solution

Simpson\'s 3/8 rule

f(x)dx = 3h/8 [(x0 + xn) + 3(x1 + x2 + x4 +...+ xn-1) + 2(x3 + x6 +....+ xn-3)]

 The MATLAB code below represents which integration rule n=3; h=(xn-x0)/n; x1=x0+h; x2=x1+h; x_3=xn; Integrate=(3*h/8)*(f(x0) +3*f(x1) +3*f(x2)+ f(x3)); Choices

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site