Tugas 3
Tugas 3
b. >> A.^4
ans =
c. >> A/pi
ans =
d. >> A ( 4 , 3 )
ans =
15
e. >> A ( 3 , : )
ans =
7 9 5
B=
7
9
5
11
f. Error using
g. >> B.^3
ans =
343
729
125
1331
h. >> B/pi
ans =
2.2282
2.8648
1.5915
3.5014
i. >> B ( 2 , 1 )
ans =
j. >> B( 1 , : )
ans =
7
C=
8 9
12 10
10 7
12 14
k. Error Using
l. >> C.^2
ans =
64 81
144 100
100 49
144 196
m. >> C/pi
ans =
2.5465 2.8648
3.8197 3.1831
3.1831 2.2282
3.8197 4.4563
n. Error Using
o. >> C ( 2 , : )
ans =
12 10
p. Error Using
q. Error Using
r. Error Using
s. Error Using
t. Error Using
u. Error Using
v. Error Using
w. Error Using
2. 4 + 5j * 4 – 6i
a. >> abs (4+5j*4-6i)
ans =
14.5602
1.2925
c. >> angle (4+5j*4-6i)*180/pi
ans =
74.0546
3 6 9 12 15 18 21 24 27 30 33 36 39 42 45
15
b. v = sqrt (g*m/cd)*tanh(sqrt(g*cd/m)*t)
v=
Columns 1 through 10
Columns 11 through 15
plot of v versus t
80
70
70 60
50
60
40
values of v
50
30
40 20
0 5 10 15 20 25 30 35 40 45
30
20
0 5 10 15 20 25 30 35 40 45
Values of t
Columns 1 through 16
Columns 17 through 25
25
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
25
b. v = sqrt (g*m/cd)*tanh(sqrt(g*cd/m)*t)
v=
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
Columns 1 through 16
Columns 17 through 25
25
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
25
b. >> v = sqrt(g*m/cd)*tanh(sqrt(g*cd/m)*t)
v=
Columns 1 through 9
Columns 10 through 18
Columns 19 through 25
-1.7541 -11.8929 77.8608 10.8887 1.3101 -6.3459 -31.2900
40
30
20
10
-10
-20
-80 -60 -40 -20 0 20 40 60 80
0
d. Grafik fungsi x terhadap fungsi y
plot of x versus
5
y
0
4
0
3
0
values of y
2
0
1
0
-
10
50
-
0 5 10 15 20 25 30 35 40
2040
0 0 0 0 0 0 0 0
30
20
10
-10
-20
0 50 100 150 200 250 300 350 400
Values of x