
Directions: Please follow these directions on all homework assignments.
x=[-1;2;5];
y=[1;4;-6]
A=[x.^2,x,ones(3,1)];
format rat
R=rref([A,y])
a=-13/18;
b=31/18;
c=31/9;
xx=linspace(-2,6);
yy=a*xx.^2+b*xx+c;
plot(xx,yy)
line(x,y,'LineStyle','none','Marker','*')
grid on
t1=text(-1,1,' (-1,1)')
text(2,4,' (2,4)', 'VerticalAlignment','bottom')
text(5,-6,'(5,-6) ','HorizontalAlignment','right')
title(['The graph of p(x) = (', num2str(a),') x^2 + (', num2str(b), ') x + ', num2str(c), '.'])
Of course, this means that each column of AB is the zero vector. That is,
for all i = 1, 2, ... , n. This, in turn, implies that each b_i is in the nullspace of A for i = 1, 2, ... , n.
This is the type of response that I expect when I look at your homework. Anything less is not in a place that all of us should be trying to reach.
Directions: Please follow these directions on all homework assignments.
x=[-1;2;5];
y=[1;4;-6]
A=[x.^2,x,ones(3,1)];
format rat
R=rref([A,y])
a=-13/18;
b=31/18;
c=31/9;
xx=linspace(-2,6);
yy=a*xx.^2+b*xx+c;
plot(xx,yy)
line(x,y,'LineStyle','none','Marker','*')
grid on
t1=text(-1,1,' (-1,1)')
text(2,4,' (2,4)', 'VerticalAlignment','bottom')
text(5,-6,'(5,-6) ','HorizontalAlignment','right')
title(['The graph of p(x) = (', num2str(a),') x^2 + (', num2str(b), ') x + ', num2str(c), '.'])
Of course, this means that each column of AB is the zero vector. That is,
for all i = 1, 2, ... , n. This, in turn, implies that each b_i is in the nullspace of A for i = 1, 2, ... , n.
This is the type of response that I expect when I look at your homework. Anything less is not in a place that all of us should be trying to reach.