Problem 1.

>> a=cos(4.12*pi/6)^2

a=
0.3062

>> b=cos((4.12*pi/6)^2)

b=
-0.0587

Problem 2.

>> roots([13,182,-184,2503])

ans =
-15.6850
0.8425 + 3.4008i
0.8425 - 3.4008i

Problem 3.

>> r=10.>> z=0:0.2. >> x=r*(z-sin(z)).8.-4.01:4*pi. >> plot(z.10.15. >> y=r*(1-cos(z)). >> gtext('y').9.-5.11. (1) .12.1].x. >> A=[3.4. >> zlabel('z').6.z.5.13.y).7. >> title('x&y vs x') Problem 4. >> gtext('x').

>> v=A(:.2) v= 7 9 13 5 (2) >> max(A') ans = 12 10 13 15 >> min(A) ans = -5 5 -4 1 (3) >> B=sort(A')' B= -4 3 7 12 -5 2 9 10 6 8 11 13 1 4 5 15 .

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.