Professional Documents
Culture Documents
LAB # 9
OBJECT:
Use for Matrix Laboratory software to perform mathematical, scaler,
vector, matrix operation.
Question 1.
>> ans=4+12+144-36-10*18/12
ans =
109
Question 2.
>> ans2=10*14+18-188*14/24
ans2 =
48.3333
Question 3.
>> ans3=2^10
ans3 =
1024
Question 4.
Total cost of item ?
>> pen=40*10
pen =
400
>> stapler=20*40
stapler =
800
>> eraser=45*2
eraser =
90
>> paperrim=4*350
paperrim =
1400
>> pencil=100*3
pencil =
300
>> totalcost=pen+stapler+eraser+paperrim+pencil
totalcost =
2990
>> average=totalcost/5
average =
598
Question 5(a).
Faranhiet to celcius. ( c=5 )
>> faranhiet=(5*9/5)+32
faranhiet =
41
Question 5(b).
Lense formula :
>> p=2
p=
>> q=3
q=
>> f=p*q/p+q
f=
Question 6.
Marks sheet of three subjects:
>> display('Marks sheet of three subjects')
Marks sheet of three subjects
cs =
77
os =
60
cg =
81
>> TM=cs+os+cg
TM =
218
>> totalmarks=TM/300
totalmarks =
0.7267
>> percentage=totalmarks*100
percentage =
72.6667
Your percentage is
>> percentage
percentage =
72.6667
Home Task:
Question 7.
Equations of motion:
>> vi=input('Enter Initial velocity= ')
Enter Initial velocity= 2
vi =
vf =
s=
t=
Equation 1:
>> a=vf^2+vi^2/2*s
a=
37
Equation 2:
>> VF=vi+a*t
VF =
76