X+y Z+W+V 1 2x+3y Z 4w+2v 3 3x y 3z+2w V 4 5x+3y 2z+w+6v 10
X+y Z+W+V 1 2x+3y Z 4w+2v 3 3x y 3z+2w V 4 5x+3y 2z+w+6v 10
X+y Z+W+V 1 2x+3y Z 4w+2v 3 3x y 3z+2w V 4 5x+3y 2z+w+6v 10
part a
syms x
[sx]=vpasolve(1/(x^2+0.03)+x/cos(0.1*x)==x+1)
sx = 64.580211983691592837934263995554
part b
x+y−z+w+v=1
2x+3y−z−4w+2v=3
−3x−y−3z+2w−v=4
5x+3y−2z+w+6v=10
Syms x y z w v
[sx,sy,sw,sz,sv]=solve(x+y-z+w+v==1,2*x+3*y-z-4*w+2*v==3,-3*x-y-3*z+2*w-v==4,5*x+3*y-
2*z+w+6*v==10)
sx =
199/49
sy =
-9/49
sw =
-136/49
sz =
-5/49
sv =
1
Ismail idris
Part c
syms x y z
>> eqn1=x^3+y-z==0;
>> eqn2=y*exp(x)+1-exp(z)==0;
>> eqn3=x^2+y^2-z^3-1==0;
>> [sx,sy,sz]=vpasolve(eqn1,eqn2,eqn3)
sx =
-0.73993922999160173400016193967317
sy =
0.68956779989856986303886433535579
sz =
0.28444362467014445368476478820729
2//
ans =
-4.0363 + 0.0000i
0.8605 + 0.4870i
0.8605 - 0.4870i
-0.6739 + 0.0000i
-0.0054 + 0.6132i
-0.0054 - 0.6132i
2
Ismail idris
3//
3
Ismail idris
4//
>> syms Jh Th Jc Tc
>> [Jh,Th,Jc,Tc]=vpasolve(5.67*10^-8*Tc^4+17.41*Tc-Jc==5188.18,Jc-0.71*Jh+7.46*Tc==2352,5.67*10^-
8*Th^4+1.865*Th-Jh==2250,Jh-0.71*Jc+7.46*Th==11093)
Jh =
19746.04990496082329038764955431
26417.205184410417351012726364585
27828.456603303862350073467006275 - 14347.921681490888582105166050856i
9392.8429778878595594360246901579 - 11030.311468585680110046590453104i
47180.177202760176954124207890063
10566.037463492768520024944529793 + 6825.2725022878606246626745744957i
14681.451688229645259334604880917 + 22328.945617627994658787424268041i
9392.8429778878595594360246901579 + 11030.311468585680110046590453104i
17969.500991865254309356599728223 + 3524.2862642766750422842869015709i
17969.500991865254309356599728223 - 3524.2862642766750422842869015709i
34780.867502962009621852675446783 + 10505.546739732046749019045930275i
27828.456603303862350073467006275 + 14347.921681490888582105166050856i
34780.867502962009621852675446783 - 10505.546739732046749019045930275i
6221.2377250617258947079749959731
10566.037463492768520024944529793 - 6825.2725022878606246626745744957i
14681.451688229645259334604880917 - 22328.945617627994658787424268041i
Th =
31756.406318765443707068366317778
23798.675071533938308370718644901
37805.129714823939038184610502282 - 10624.65719708253576891691666483i
12442.415476398272100349389808947 - 7184.8286373092368855783591242732i
52032.534769041686987743996071911
17771.357126707093388641406723945 + 10761.170192375367493587043879597i
4
Ismail idris
20192.353235606434640866517400619 + 22207.145460980647566812719156575i
12442.415476398272100349389808947 + 7184.8286373092368855783591242732i
23545.81460072299216492874700368 - 3642.8738847963361878591634311083i
23545.81460072299216492874700368 + 3642.8738847963361878591634311083i
35092.40072445023783690425252297 + 14280.090312654281942958785131137i
37805.129714823939038184610502282 + 10624.65719708253576891691666483i
35092.40072445023783690425252297 - 14280.090312654281942958785131137i
10503.561058840911995643396912676
17771.357126707093388641406723945 - 10761.170192375367493587043879597i
20192.353235606434640866517400619 - 22207.145460980647566812719156575i
Jc =
690.75048007542114499073599615458
-960.87746429240229920502897140829
183.00073649076868190852633382638 + 912.11998278314855042548997571405i
240.38498798323239032333003675528 + 794.7832622112763969552219135215i
-1056.9809003673698649900764985263
590.29840435244876486735311584557 + 109.27055419552953026596871045823i
269.05081890763047395182606883681 - 879.60755232328885876010638966123i
240.38498798323239032333003675528 - 794.7832622112763969552219135215i
147.45675263378956135962609174136 - 819.13226842923240424454328923027i
147.45675263378956135962609174136 + 819.13226842923240424454328923027i
- 1007.1398108046033187199270985891 - 49.153165917896322991730360210155i
183.00073649076868190852633382638 - 912.11998278314855042548997571405i
- 1007.1398108046033187199270985891 + 49.153165917896322991730360210155i
481.00410545781791182290037694732
590.29840435244876486735311584557 - 109.27055419552953026596871045823i
269.05081890763047395182606883681 + 879.60755232328885876010638966123i
Tc =
5
Ismail idris
-890.57786678864063952991087590063
811.06442485220616767403714128081
- 932.16159872361886992392076780513 + 58.663914641287516839443534681275i
713.07011231931745132040049880231 - 86.68800340302895342556569670656i
-997.5347124774747118385802238561
110.39269066659145584132759949171 - 792.92583321058799598881299352619i
177.54389584941199641569062531261 - 851.68821346712752802595816705978i
713.07011231931745132040049880231 + 86.68800340302895342556569670656i
40.955911997498444331694209565357 + 823.74224295345515655241382456082i
40.955911997498444331694209565357 - 823.74224295345515655241382456082i
93.165576763108444317848129255511 - 914.36355595771162884118800544797i
- 932.16159872361886992392076780513 - 58.663914641287516839443534681275i
93.165576763108444317848129255511 + 914.36355595771162884118800544797i
671.11497666929133908837336923119
110.39269066659145584132759949171 + 792.92583321058799598881299352619i
177.54389584941199641569062531261 + 851.68821346712752802595816705978i
6
Ismail idris
5//
7
Ismail idris
6//
8
Ismail idris