

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Hints for Assignment 4
Suppose 9 E s.t. EA = I. Since E is invertible, then rank(EA) = rank(A) = rank(I) = n (Ann) From the other hand, rank(En:::E 1 A) = rank(A) = rank(B) < n, because all Ei are invertible. This is a contradiction.
x 1
k 1 0
A (^) + x 2
k 1
A (^) + x 3
k
k 1 0 1 k 1 0 1 k
x 1 x 2 x 3
0 1 k^2 k 1 k 1 0 1 k
0 0 k(k^2 2) 1 0 1 k^2 0 1 k
k = 0 or k =
p 2 () linearly dependent
Suppose U 6 = V , W 6 = V. 9 a 2 V s.t. a 62 U , but a 2 W 9 b 2 V s.t. b 62 W , but b 2 U a + b 2 V ) a + b 2 U or W. This is a contradiction.
4. x <‐ scan ("smoking.txt", list("",0,0), skip=1)
smoke <‐ x[[2]];
deth <‐ x[[3]];
plot(smoke, death, xlab='smoking rate', ylab='death rate', type='p')
abline(lsfit(smoke, death), lty = 2)
5.
pdf("3D_plot.pdf")
x <‐seq(‐1,1, length = 100)
y <‐seq(0,1, length = 100)
z <‐ matrix(0, length(x), length(y))
for (i in 1:length(x))
{
for(j in 1:length(y))
{
u <‐ (x[i]sin(20y[j])+y[j]sin(20x[i]))^2cosh(sin(10x[i])*x[i]);
v <‐ (x[i]sin(10y[j])‐y[j]sin(10x[i]))^2cosh(cos(20y[j])*y[j]);
z[i,j] <‐ u+v
}
}
persp(x,y,z, xlim=range(‐1,1), ylim=range(0,1), zlim=range(0, max(z)+1/2), theta=30, phi=20, ticktype='detailed')
dev.off()