hw2soln - (-t)+184/567*exp(-4*t)+7912/15309*exp(-1/2*t)*cos

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Q.1 >> A=[1.1 2.35 10 18.8;21 10.5 12.87 24.5;83 11 1 3.4;4.5 52.1 12.345 25.8] A = 1.1000 2.3500 10.0000 18.8000 21.0000 10.5000 12.8700 24.5000 83.0000 11.0000 1.0000 3.4000 4.5000 52.1000 12.3450 25.8000 >> A^2 ans = 1.0e+003 * 0.9652 1.1167 0.2833 0.5973 1.4221 1.5776 0.6605 1.3279 0.4206 0.4987 1.0145 1.9210 2.2398 2.0376 1.0464 2.0687 >> A-23*eye(4) ans = -21.9000 2.3500 10.0000 18.8000 21.0000 -12.5000 12.8700 24.5000 83.0000 11.0000 -22.0000 3.4000 4.5000 52.1000 12.3450 2.8000 >> inv(A) ans = -0.0404 0.0373 0.0035 -0.0064 -0.2155 0.1671 -0.0396 0.0036 -6.7331 6.0044 -1.3968 -0.6115 3.6639 -3.2169 0.7477 0.3252 >> [u,lambda]=eig(A) u = 0.2722 0.0111 -0.0547 -0.2840 0.4802 -0.0384 0.0682 -0.1131 0.4368 -0.8808 0.8834 0.9480 0.7103 0.4718 -0.4605 -0.0883 lambda = 70.3447 0 0 0 0 -1.3841 0 0 0 0 -5.0645 0 0 0 0 -25.4961 >> det(A) ans = -1.2572e+004 Q.2 >> syms s >> ilaplace(23*(s+2)/((s+1)^3*(s^2+s+9)*(0.25*s+1))) ans = 46/27*t^2*exp(-t)+644/243*t*exp(-t)-1840/2187*exp
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (-t)+184/567*exp(-4*t)+7912/15309*exp(-1/2*t)*cos (1/2*35^(1/2)*t)-8464/76545*exp(-1/2*t)*35^(1/2)*sin (1/2*35^(1/2)*t) Q.3 >> A=[3 2 0 -5;31.5 23.6 1 0;2 19 7.2 3;1 52 2.5 7] A = 3.0000 2.0000 0 -5.0000 31.5000 23.6000 1.0000 2.0000 19.0000 7.2000 3.0000 1.0000 52.0000 2.5000 7.0000 >> B=[23;32;18.2;12.34] B = 23.0000 32.0000 18.2000 12.3400 >> inv(A)*B ans = 0.4442 ---x 0.6635 ---y 2.3486 ---s-4.0681 ---z Q.4 >> t=[0:0.1:5]; >> y=2*sin(3*t)+(t.*t)/12+exp(t/3); >> plot(t,y) Q.5 >> for i=1:5 for j=1:5 K(i,j)=i*j+i^(2.3)*sin(pi*(i+j)/12); end end >> K K = 1.5000 2.7071 3.8660 4.9659 6.0000 5.4822 8.2648 10.7568 12.9246 14.7568 13.8370 18.0871 21.5135 24.0871 25.8370 27.4251 32.2515 35.4251 37.0024 37.1484 45.5164 49.1359 50.0882 48.6494 45.2582 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-1 1 2 3 4 5 6 7 8 9...
View Full Document

Page1 / 2

hw2soln - (-t)+184/567*exp(-4*t)+7912/15309*exp(-1/2*t)*cos

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online