Assume x = 0:10. Use the MATLAB interpolation command to find the most accurate
ID: 3829722 • Letter: A
Question
Assume x = 0:10. Use the MATLAB interpolation command to find the most accurate value of the polynomial function K (x) = x^3 + x - 6 at x = 4.6. > > x = 0:10; > > K = x^3 + x - 6; > > A = interp 1 (x, K, 4.6, 'spline') > > x = 0.10; > > K = x^3 + x - 6; > > A = interp 1 (x, K, 4.6) > > x = 0.10; > > K = x.^3 + x - 6; > > A = interp 1 (x, K, 4.6, 'spline') > > x = 0.10; > > K = x.^3 + x - 6; > > A = interp 1 (x, K, 4.6, 'linear') Which sequence of commands is correct for finding the area under the curve 1/(x + 1) for the data set given: > > x = 1:2:10; > > y = 1./(x + 1); > > trapz (x, y, 'spline') > > x = 1:2:10; > > y = 1/(x + 1); > > trapz (x, y) > > x = 1:2:10; > > y = 1./(x + 1); > > trapz (x, y) > > x = 1:2:10; > > y = 1./x + 1; > > trapz (x, y, 'spline') Which command is not used for Numerical Integration of functions: quadl integral int trapzExplanation / Answer
20 (C) it will give cubic spline interpolation and our function is also cubic so C will give us the correct results
21(C) Area under curve is found using trapz(x,y) and y = 1./ (x+1)
22) int is not used , So C is the answer