Sunteți pe pagina 1din 4

30

Alexander Joshua B. Ignacio


engr.jabi@gmail.com
09164087456

Jomarie C. Cabuello
jomarie.cabuello@gmail.com
09165948612

1. Evaluate the following equations:


a. >> (0.0000123+5.67*10^(-3))*0.4567*10^(-4)
ans =
2.5951e-007
b. >> (sqrt(2)*pi)/5
ans =
0.8886
c. >> b=3.25, c=0.35, d=1.75
b=
3.2500
c=
0.3500
d=
1.7500
>> a=b+c*acosh((d/(2*c))-1)
a=
3.5868

2. Define the following matrices:


>> X=[1 1 3 2; -4 -3 -2 -1; 11 7 3 -1; 4 2 0 -2]
X=
1 1 3 2
-4 -3 -2 -1
11 7 3 -1
4 2 0 -2
>> Y=[1 3 9 -1; -5 -3 -1 1; 2 3 4 5; -1 2 -3 4]
Y=
1 3 9 -1
-5 -3 -1 1
2 3 4 5
-1 2 -3 4
>> Z=[7 9 -1 6; 1 0 -2 10; 11 8 3 -1; 5 6 7 8]
Z=
7 9 -1
1 0 -2
11 8 3
5 6 7

6
10
-1
8

Determine the following matrices


a.

>> Q=X+Y
Q=
2
-9
13
3

4 12 1
-6 -3 0
10 7 4
4 -3 2

b. >> S=X.*Z
S=
7

9 -3 12

-4 0 4 -10
121 56 9 1
20 12 0 -16

c. >> R=Z./Y
R=
7.0000 3.0000 -0.1111 -6.0000
-0.2000
0 2.0000 10.0000
5.5000 2.6667 0.7500 -0.2000
-5.0000 3.0000 -2.3333 2.0000
d. >> T=(X*Y).^2
T=
0
64
289
16

169
196
529
121
1444
169
361
11449
49
4
1600
100

e. >> U=[X(:,2) Y(:,2) Z(:,2) R(:,2)]


U=
1.0000
-3.0000
7.0000
2.0000
f.

3.0000 9.0000 3.0000


-3.0000
0
0
3.0000 8.0000 2.6667
2.0000 6.0000 3.0000

>> V=[Q(3,:); S(3,:); X(3,:); Z(3,:)]


V=
13
121
11
11

10 7 4
56 9 1
7 3 -1
8 3 -1

3. Solve the following


>> P=exp((-0.21*5)+log(14.7))
P=
5.1441

4. Solve the system of equations:


>> q=[4 1 2; 5 -1 1;-2 3 7];
>> w=[9 1 2;12 -1 1;5 3 7];
>> e=[4 9 2; 5 12 1;-2 5 7];
>> r=[4 1 9; 5 -1 12;-2 3 5];
>> X1=det(w)/det(q)
X1 =
1.7059
>> X2=det(e)/det(q)
X2 =
-1.5882
>> X3=det(r)/det(q)
X3 =
1.8824

S-ar putea să vă placă și