Problem#1C
>>a=[31;23;23];
b=[123;113];
c=[211;111;212];
f=[4;5;3];
g=[2;1];
>>
>>(a'+b)*c
ans=
18914
12410
>>inv(c)*(fa*g)
ans=
3
2
7
Findinginverse
>>mat=a*b
mat=
4712
113
5715
>>inv(mat)
Warning:Matrixissingulartoworkingprecision.
ans=
InfInfInf
InfInfInf
InfInfInf
InverseofABdoesnotexist.
Problem#2b
>>A=[2110;1321;1221;0112];
>>b=[1;8;2;4];
>>u=A\b
u=
4.8750
3.7500
7.0000
0.3750
KomalBhandari(KB29347)
Problem#2C
>>U12=[2;3][10;21]*[1;2]%finding[u1,u2]
U12=
3
1
>>U12value=[21;13]\U12%thesearethevalueofu1,u2
U12value=
2.0000
1.0000
>>%findingthevalueofF3,F4
>>F34=[1221;0112]*[U12value;1;2]
F34=
0.0000
4.0000