Matlab Code:
x = 0:10;
y = [4.382 1.787 7.757 17.52 22.76 24.22 36.83 37.65 51.32 68.35
74.59];
%part a - selecting 4 points to solve for the coefficients
X = [x(1) x(4) x(8) x(11)]';
Y = [y(1) y(4) y(8) y(11)]';
A = [ones(4,1) X X.^2 X.^3];
coeffs1 = inv(A)*Y;
yb1 =
coeffs1(1)+coeffs1(2).*x+coeffs1(3).*x.^2+coeffs1(4).*x.^3;
lsqerr1 = sum((y-yb1).^2);%least square error for part a
subplot(1,2,1);
plot(x,y); hold on
plot(x,yb1);
legend('y','yb1');
%part b
coeffs2 = polyfit(x,y,3);
yb2 =
coeffs2(4)+coeffs2(3).*x+coeffs2(2).*x.^2+coeffs2(1).*x.^3;
lsqerr2 = sum((y-yb2).^2);%least square error for part b
subplot(1,2,2);
plot(x,y); hold on
plot(x,yb2);
legend('y','yb');


use matlab 6. You have a x-y relationship as follows 1 2 3 4 5 6 7 8 10 X 17.52 22.76 24.22 36.83 37.65 51.32 68.3...
1) Using Matlab, find all real and complex roots of the following polynomial equation: (x-1)(x-2)(x-3)(x-4)(x-5)(x-6)(x-7)=8 2) Using Matlab, find the root for the following system of equations. Both x and y are positive. a: (x^2)cos(y)=1 b: e^(-4x)+1
x 2 6 1 3 3 y 5 10 4 8 6 Assuming that the regression equation is y = 2.957 + 1.214x and that the SSE = 2.5571, test to determine if the slope is not equal to zero using alpha = 0.05 a) Test Statistic T = ______ (round to two decimal places) b) Critical value(s) +/- tx/2 = _______, _______ (round to 3 decimal places)
x. -1, 0, 1, 2, 3, 4 y. -14, -5, -2, 7, 34, 91 1. Use finite differences to determine the degree of the polynomial function that fits the data. 2. find the polynomial function. please show steps.
6.6x 10-6 J 1 2 3 4 5 6 7 8 0 x 100 +/- MacBook Air Appreciation: Fx E Fim test 2 review-G Copy of Hocus Pocus x MyUAFS-Students d pr A x C app.101edu.co Question 19 of 64 (h= What is the energy of a photon with a frequency of 7.00x 10S 6.626x 10 J s)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
QUESTION 1 Which of the following is not a legal exception to breaking patient confidentiality? O when required by lavw O The patient is incompetent or incapacitated O An emergency O A gut feeling O To protect 3rd parties QUESTION 2 Why is trust imperative to maintain a patient/provider relationship? O You don't want to get sued O You want your patients to respect you O As a hospital operates...
Consider the graph 12 10 6, 9) y-f(x 8 (2, 7) (4, 5) (0, 3) (8, 0) 10 (a) Using the indicated subintervals, approximate the shaded area by using lower sums s (rectangles that lie below the graph of f) (b) Using the indicated subintervals, approximate the shaded area by using upper sums S (rectangles that extend above the graph of f) +-14 points SullivanCalc1 5.1.019 Approximate the area A under the graph of function f from a to b...