MVR5 I/context/cfpushR6$%"aG'%"LG<$%%nameG%&stackG6#%"tG6#%inCopyright~(c)~1997~by~W aterloo~Maple~Inc.~All~rights~reserved.G6"C%-%'ASSERTG6#-%)assignedG6#F*@$4-%%t ypeG6$9%F*-%'assignG6$F<-&F*6#.%$newGF/-&F*6#.%%pushG6$9$F8$-%)readstatGF/>%'finishGFW@$5/Fen%%exitG/Fen%%EXITG-%'RETURN G6#%4Execution~SuspendedG?(F/"""FaoF/4-F:6$FW%'matrixGC&-FS6#%UPlease~try~again :~eg:~A:=matrix([[1,2,3],[3,2,2]]);|+G>FWFX>FenFW@$FgnF\o-F]o6#FWF/6#FenF/F/, I5CM_RemoveAssumptionsR6#%"fGF+F-F/C&-%(readlibG6#%'assumeG@$-F:6$FK%.HasAssump tionGC$-F>6$-%*substringG6$FK;Fao!"#.F`q-F]o6#F`q>FW-%'indetsGF[q@%0FW<"-%$mapG 6$9!FW%%NULLGF/F/F/6", I+getIntegerRF/6#%"nGF/F/C(-FS6#%DPlease~enter~an~integer.~eg:~n:=3;|+G>FWFX>Fe nFW@$FgnF\o?(F/FaoFaoF/4-F:6$FW%(integerGC&-FS6#%=Please~try~again:~eg:~n:=3;|+ G>FWFX>FenFW@$FgnF\oF]pF/F_pF/F/, I5help/text/transtrans-%%TEXTG6,%"~G%MHELP~SCREEN~for~:~Transpose~of~the~transp oseGF_t%3PACKAGE~:~MatricesG%hoCONTENTS~:~This~function~checks~if~the~transpose ~of~the~transpose~is~equal~toG%8~~~~~~~~~~~the~matrix~AGF_t%T~~~~~~~~~~~~To~Cal l~:~>~A~:=~matrix([[1,2],[3,3]]);G%G~~~~~~~~~~~~~~~~~~~~~~>~transtrans(A);GF_tF /, I0context/cfparseR6#'%#CFG%)CF_CLASSG6=%(arglistG%(ActionsG%+ActionNameG%+Actio nKeysG%)AncestorG%-ConditionalsG%0ConditionalKeysG%%DataG%,DescriptionG%%fileG% %headG%+HelpStringG%(IfBlockG%%MenuG%$KeyG%&LocCFG%+MenuStringG%,MenuEntriesG%+ RecognizerG%-ReplacementsG%)SubMenusG%-SubMenusKeysG%#t0G%%tailG%%TestG%)warnin gsG%"xGF-F/CK@$0%4context/InitializedG%%trueG--Ffp6#.%-context/initGF/-Ffp6#%1c ontext/cmglobalG-Ffp6#%.context/cfgetG-Ffp6#%8context/cfparse/contentG-Ffp6#%6c ontext/cfparse/menusG-Ffp6#%;context/cfparse/recognizerG>83FK>%0_EnvContextData G-%&tableGF/>8%-Fjq6$Fbx.%*CF_ACTIONG>8:-%%timeGF/-%)userinfoG6%Fao<#Fft-%(spri ntfG6%QF%7.3f~:~Replacing~%d~Actions~by~Keys.6",&F_yFaoF^y!""-%%nopsG6#Fhx>8'Fe x?&8>FhxF\wC&>82-Fdw6#-Fgw6$Q+MenuString6"Fbz>&F`z6#Fbz-%*CM_ACTIONG6#Fez>&Fdx6 #F_[lFbz-Fjw6$F_[lFex>87<#-%$seqG6$/&FdxF^[lFbz/Fbz-F_r6$%#opG7#-%(entriesG6#F` z>Fbx-%%subsG6$Fh[lFbx>8)-Fjq6$Fbx.%/CF_CONDITIONALG-Fby6%FaoFdy-Ffy6%QK%7.3f~: ~Replacing~%d~Conditionals~by~Keys.FiyFjy-F]z6#F\]l>Fh[l-F_r6$%Bcontext/cfparse /splitconditionalsGF\]l>F\]l-Fi\l6$Fh[lF\]l>FbxFh\l>8*Fex?&FbzF\]lF\wC'>Fez-Fdw 6#Q*ConditionFiy>&Fa^lF^[l-%/CM_CONDITIONALGFa[l>8+-F_r6$RF+F/F/F/@$-F:6$FKF`[l &Fdx6#-%/CM_ACTION_DATAG6#-Fb\l6#FKF/F/F/Fbz>&Fdx6#Fj^lFbz-Fjw6$Fj^lFex>Fh[l<#- F[\l6$F]\l/Fbz-F_r6$Fb\l7#-Fe\l6#Fa^l>Fbx-%)CM_CLASSG6#-Fb\l6#Fh\l>88-Fjq6$Fbx. %+CF_SUBMENUG-Fby6%FaoFdy-Ffy6$QD%7.3f~:~Replacing~Submenus~by~Keys.FiyFjy>89Fe x?&FbzFaalF\wC%>FezFhz>&F\blF^[l-%+CM_SUBMENUGFa[l>&Fdx6#FablFbz>Fh[l<#-F[\l6$F ]\l/Fbz-F_r6$Fb\l7#-Fe\l6#F\bl>FbxFh\l>Fbx-Fi\l6$<%/F[uF\al/%(CF_CODEG%(CM_CODE G/%-CF_SEPARATORG%-CM_SEPARATORGFbx-Fby6%FaoFdy-Ffy6$QD%7.3f~:~Building~Menu~Te mplates~...FiyFjy-F]x6%Fbx7"Fddl>8=-%*interfaceG6#.%*warnlevelG-Fhdl6#/Fjdl""!- Fby6%FaoFdy-Ffy6$Q@%7.3f~:~Building~Recognizer~...FiyFjy>86-F`x6$Fbx-%%evalG6#F dx>%,ContextDataGFiel-Fhdl6#/F[elFfdl-Fby6%FaoFdy-Ffy6$Q>%7.3f~:~CONTEXTMENU~Co mpletedFiyFjy-F]o6#-Fjel6#FfelF/6$FdxF]flF/Fiy, I-context/initR6"6#%.ReadlibDefineG6$%FCopyRight~1997~by~Waterloo~Maple~Inc.G%f nCopyright~(c)~1997~Waterloo~Maple~Inc.~All~rights~reserved.GF]glCco@$/F[wF\w-F ]o6#Fbr>8$Ffp-Figl6#.%3context/autoassignG-Figl6#.%9context/BuildInputStringG-F igl6#.%8context/InitializeProcsG-Figl6#.Fgw-Figl6#.Fft-Figl6#.%?context/cfparse /classtoifblockG-Figl6#.%%*CM_GlobalG-Ffp6#.Fd w-Figl6#.%%.CM_IsParsableG.-Ffp6#Ff\m-Figl6#.%1co ntext/jointextG-Figl6#.%3context/multiparseG-Figl6#.Ficl-Figl6#.F`p-Figl6#.%+CM _GetVarsG-Figl6#.%0CM_GetArrayVarsG-Figl6#.%,CM_GetFuncsG-Figl6#.%.CM_InertFunc sG-Figl6#.%4convert/CONTEXTMENUG-Figl6#.%F[wF\wFbrF]gl6%F][mFi\mF[wF]glF] gl, I)mainmenuRF/6#%)responseG6#%SCopyright~1996~by~Ananda~Gunawardena~&~Elias~Deeb aGF/C,-%&blankG6#Fao-FS6#%aoChoose,~from~the~following~options,~the~appropriate ~route~to~proceed.|+G-FS6#%]oAt~the~prompt~sign,~enter~your~selection~followed~ by~a~semi-colon|+G-FS6#%S~~~1.~Find~the~inverse~of~the~coefficient~matrix.|+G-F S6#%W~~~2.~Find~the~determinant~of~the~coefficient~matrix.|+G-FS6#%jo~~~3.~Find ~the~row~echelon~form~of~the~matrix~to~find~a~solution~to~the~system|+G>FWFX>Fe nFW@$FgnC$-%&printGF^o-F]o6#F_tF]pF/F_pF/F/, I'linmat=F/%&falseGE\[l+%)GeometryGRF/63%"SG%"TG%#S1G%#S2G%#T1G%"iG%"jG%#g1G%#g 2G%#x1G%#x2G%#y1G%#y2G%#t1G%#t2G%%min1G%&indexGFdhmF/C*-F^jm6#%]pThe~purpose~of ~this~function~is~to~demonstrate~the~effect~of~matrix~multiplicationG-F^jm6#%`p on~a~2D~image.~The~image~must~be~entered~as~a~set~of~n~elements~where~n~is~the~ numberG-F^jm6#%^pof~points~that~make~up~the~image.~The~matrix~is~a~2x2~matrix.~ The~function~displaysG-F^jm6#%jothe~original~image~and~the~transformed~image.~T his~function~can~be~used~to~viewG-F^jm6#%Dreflections,~rotations,~and~scalingGF ghm@)/9#""#C$@&-F:6$&9"Fihm%$setG>FWFa]n-F:6$Fa]nFeo>FhxFa]n@&-F:6$&Fb]n6#F\]nF c]n>FWF[^n-F:6$F[^nFeo>FhxF[^n/F[]nFao@'Fe]nC'>FhxFa]n-FS6#%Aplease~enter~the~i mage~as~a~set|+G-F^jm6#%FFor~example:~~S:=|fr[1,2],[3,2],[2,1]|hr;G>FWFX?(F/Fao FaoF/4-F:6$FWFc]nC$-FS6#%>A~set~is~expected.~Try~again|+G>FWFXF_]nC'>FWFa]n-FS6 #%;please~enter~the~matrix~T|+G-F^jm6#%HFor~example:~A:=matrix([[1,1],[-1,1]]); G>FhxFX?(F/FaoFaoF/4-F:6$FhxFeoC$-FS6#%FhxFX-%&E RRORG6#%MIncorrect~arguments.~Type~?Geometry~for~helpG/F[]nF_elC*Fe^nFh^n>FWFX? (F/FaoFaoF/F]_nC$Fa_n>FWFXFg_nFj_n>FhxFX?(F/FaoFaoF/F_`nC$Fc`n>FhxFX-Fh`n6#%Lto o~many~arguments.~Type~?Geometry~for~helpG@%5550-%'rowdimGF^z-%'coldimGF^z4-F:6 $&FWFihm%%listG2""$-F]z6#Fdbn2FgbnF]bnFg`nC$-%%withG6#%&plotsG@&3/F]bnF\]n/Fhbn F\]nC4>8&-Feo6$F\]n-F]zF^p?(F\]lFaoFaoF\]nF\w?(Fa^lFaoFaoFicnF\w>&Ffcn6$F\]lFa^ l-%&evalfG6$&&FWFi`lFg]lF\]n>8(-%)multiplyG6$FhxFfcn>F`zF]r?(Fa^lFaoFaoFicnF\w> F`z-%&unionG6$F`z<#-%$colG6$FednFa^l>Fbx"$***?(F\]lFaoFaoFicnF\w@$2&&FWFg]lFihm FbxC$>84F\]l>FbxFhen>8-&&FW6#F\fnFihm>8/&FafnF\^n>FbxFden?(F\]lFaoFao-F]zFf\lF\ w@$2&&F`zFg]lFihmFbxC$>F\fnF\]l>FbxF[gn>8.&&F`zFbfnFihm>80&FcgnF\^n>81-%)textpl otG6%7%,&F_fnFaoF[zFao,&FdfnFaoF\]nFao%/original~imageG/%&alignG<$%&ABOVEG%%LEF TG/%&colorG%$redG>Fez-Fjgn6%7%,&FagnFaoF[zFao,&FegnFaoFdqFao%2transformed~image G/Fahn<$Fdhn%&BELOWG/Ffhn%%blueG>F]_l-%*pointplotG6%FW/Ffhn%$REDG/%*thicknessG" #5>8,-Ffin6%F`z/Ffhn%%BLUEGFjin-%(displayG6#<&F]_lF^jnFezFhgn3/F]bnFgbn/FhbnFgb nF/F/F_pF/%*trinverseGRF/6+FP%%flagG%#c1G%#r1G%'transAG%&invtAG%%invAG%(transiA G%$ansGFdhmF/C-Fghm-F^jm6#%boThe~purpose~of~this~program~is~to~check~if~the~inv erse~of~the~transposeG-F^jm6#%Wof~a~matrix~A~is~the~transpose~of~the~inverse;~t hat~isG-%)continueGF/@$5FjnFhn-F]oF/@&F[anC&-FS6#%ZEnter~the~matrix.~|frfor~exa mple,~A:=matrix([[1,2],[2,3]])|+G>FWFX?(F/FaoFaoF/FboC$-FS6#%?Matrix~is~Expecte d.~Try~Again|+G>FWFX-F^jm6$%;The~matrix~you~entered~is~G/FW-%&evalmGF^pFa^nC$>F W-%(convertGFf]n-F^jm6$%6The~given~matrix~is~:GF`]oF\\o@$F_\oF`\o>F`z-F^bnF^p>F fcn-F`bnF^p@%3/F`zFfcn0-%$detGF^pF_elC6>Fedn-&%'linalgG6#%*transposeGF^p>F\]l-& Fi^o6#%(inverseG6#Fedn>Fa^l-F^_oF^p>F]_l-Fh^oFi`l-F^jm6$%IThe~inverse~of~the~tr anspose~inv(trA)~=~GF\]lF\\o@$F_\oF`\o-F^jm6$%KThe~transpose~of~the~inverse~tr( inv(A))~=~GF]_lF\\o@$F_\oF`\o-FS6#%^oIs~the~transpose~of~the~inverse~equal~to~t he~inverse~of~transpose?|+G-FS6#%CEnter~your~answer~as:~yes;~or~no;|+G>F^jnFX?( F/FaoFaoF/53/F^jn%#noG0-%%normG6$-Fb]o6#,&F\]lFaoF]_lF[zF\]nF_el3/F^jn%$yesGFj` oC1-FS6#%TTry~to~find~a~matrix~for~which~this~property~holds|+GFghm-FS6#%2Enter ~the~matrix|+GFX>FW-Ff]o6$%"%GFeo-F^jm6$%7You~entered~the~matrixGFW>F`zF\^o>Ffc nF^^o@$F`^oC*>FednFg^o>F\]lF]_o>Fa^lFc_o>F]_lFe_oFf_oF\\o@$F_\oF`\oFj_oF\\o@$F_ \oF`\oFghm-FS6#%JDoes~this~property~hold~for~this~matrix?|+G-FS6#%CType~your~an swer~as~:~yes;~or~no;|+G>F^jnFX?(F/FaoFaoF/3Fh`o/F[aoF_elC$-F^jm6#%QYour~answer ~is~not~correct.~Try~the~other~choiceG>F^jnFXF\\o@$F_\oF`\o-F^jm6#%ioIndeed,~th e~transpose~of~the~inverse~is~equal~to~the~inverse~of~the~transpose.GFghm-F^jm6 #%SSeed~of~thought!!!~Does~this~property~always~hold?G-F^jm6#%WThis~matrix~is~s ingular.~We~cannot~check~this~propertyGF/F_pF/%+transtransGRF/6*F][oFP%(trans_A G%-trans_transAGF^[o%#c2GF_[o%#r2GFdhmF/C8-F^jm6#%^oThe~purpose~of~this~program ~is~to~check~the~validity~of~conjecture~G-F^jm6$/))FhxFijmFijmFhx%9for~a~given~ matrix~A~.~~GF\\o@$F_\oF`\o@&F[anC&-FS6#%jnEnter~the~given~matrix.~For~example, ~A:=matrix([[1,2],[2,3]]).|+G>FhxFX?(F/FaoFaoF/F_`nC$Fi\o>FhxFX-F^jm6$F_]o/Fhx- Fb]oF^zFa^nC$>FhxFe]o-F^jm6$Fi]oFbfo>Ffcn-Fh^oF^z>F`z-Fh^o6#FfcnFghm-F^jm6$%FTh e~Transpose~of~the~matrix~trA~is~:~G/Fdeo-Fb]oF\goFghm-F^jm6$%MThe~Transpose~of ~the~Transpose~of~the~matrixG/Fceo-Fb]oFf\lF\\o@$F_\oF`\o>Fa^l-F^bnF\go>Fedn-F` bnF\go>F]_l-F^bnFf\l>F\]l-F`bnFf\l@%/-F\ao6$-Fb]o6#,&FhxFaoF`zF[zF\]nF_el-F^jm6 %%=In~this~case,~the~conjectureGFbeo%'holds.G-F^jm6#%MIn~this~case,~the~conject ure~does~not~hold~.GFghm-F^jm6#%[oThis~is~the~end~of~the~transtrans~procedure.P lease~enter~anotherG-F^jm6#%\omatrix~and~execute~the~procedure~to~get~a~feel~fo r~this~property.G-F^jm6#%@Try~to~give~a~proof~in~general.GF/F_pF/%)trainnetGRF/ 6LFchmFd[o%#MbG%#NbGF][nF^[n%"kG%"lG%"MG%"NG%&thetaG%"bG%'bthetaG%#UMG%#UNG%#fv G%#fuG%"uG%"vG%&deltaG%'delta1G%%averG%'deltaMG%'deltaNGFcp%#IRG%#ORGF%%#v1G%(d eltaMbG%(deltaNbG%&fnetiG%%netiG%$UMbG%$UNbG%$IRbG%%netjG%&fnetjG%#TOG%&inputG% +iterationsG%&alphaGFdhmF/Chn-FS6#%\o~~The~purpose~of~this~procedure~is~to~simu late~a~neural~network.|+G-FS6#%E~~More~specifically,~this~procedure|+G-FS6#%ho~ ~~1.~~simulates~and~train~a~neural~net~using~the~back~propagation~algorithm|+G- FS6#%eo~~~2.~~checks~if~the~trained~net~recognizes~the~set~of~rules~by~producin g|+G-FS6#%Q~~~~~~~an~output~"close~to"~the~targeted~output|+G-FS6#%hn~~For~more ~details,~please~see~Application~2.3~from~Unit~Two|+GFghm@$F[anC'-FS6#%enNeural ~net~is~trained~using~an~iterative~process.~You~may|+G-FS6#%]ochoose~the~number ~of~iterations.~How~many~iterations~do~you~want?|+G>8LFX>FenFj]p@$FgnF`\o@$Fa^n >Fj]pFa]n-FS6#%VPlease~enter~the~input~rules~in~the~form~of~a~matrix|+G-FS6#%\o For~example,~matrix([[1,0,1,0,0,1,0],[1,0,0,1,0,0,1]])~represent|+G-FS6#%intwo~ input~rules.~(Input~rules~(a)~and~(b)~of~Application~2.3)|+G>8KFX>FenFi^p@$FgnF `\o?(F/FaoFaoF/4-F:6$Fi^pFeoC&-FS6#%1Matrix~expected|+G>Fi^pFX>FenFi^p@$FgnF`\o >8G-F[_o6#Fi^p-FS6#%enPlease~enter~the~targeted~output~of~each~rule~as~a~matrix |+G-FS6#%MFor~example,~matrix([[1,0,0,0],[0,1,0,0]]);|+G>8JFX>FenFb`p@$FgnF`\o? (F/FaoFaoF/4-F:6$Fb`pFeoC&Fa_p>Fb`pFX>FenFb`p@$FgnF`\o>Fbz-F[_o6#Fb`p>8M.Faap-F S6#%ZEnter~the~scaling~function~as~f:=t->1/(1+exp(-alpha*t));|+GFX>8FaapFX@%/Faap"#]C$>Fga pRF+F/FiapF/*$,&FaoFao-F_bp6#,$FK!#]FaoF[zF/F/F/-F^jm6$%8The~scaling~function~i sGFhbpC$>FgapRF+F/FiapF/F\bpF/F/FdbpFbdp>Ffcn-Feo6#7&7&$F[zFdq$FaoFdq$F\]nFdqF^ ep7&F]epF^epF_ep$FgbnFdq7&F]epFaepF_epF^ep7&F]epF^epFaepF^ep>F`z-Feo6#7)7%F]ep$ FdqFdqF]ep7%F^epF_epFaep7%F^epFaepF^ep7%F^epF^epF_ep7%FaepF_epF^ep7%F_epF^epF_e p7%F]epFaepF^ep-F^jm6$%enThe~original~weights~of~the~input~layer~is~a~random~ma trixG/F`zFfgo-F^jm6$%fnThe~original~weights~of~the~output~layer~is~a~random~mat rixG/FfcnFagoF\\o@$FgnF`\o-FS6#%WWe~start~training~the~net~and~updating~of~the~ weights|+G-FS6#%Fusing~the~back~propagation~algorithm|+G?(FdfnFaoFaoFj]pF\wC$?( F]_lFaoFao-F^bnFj_pF\wC8>8H-Fgdn6$-F[_o6#-Ff]o6$-Faen6$Fh_pF]_lFeoF`z>8I-%'vect orG6#7&Fao-Fgap6#&Fegp6$FaoFao-Fgap6#&Fegp6$FaoF\]n-Fgap6#&Fegp6$FaoFgbn>Ffel-F gdn6$-F[_o6#-Ff]o6$F_hpFeoFfcn>Fbx-Fahp6#7&-Fgap6#&FfelFghp-Fgap6#&FfelF[ip-Fga p6#&FfelF_ip-Fgap6#&Ffel6$Fao""%-FS6$%FThis~is~net~output~for~input~rule~%d|+GF ]_l-F^jm6#Fbx>Fh[l-Fahp6#Fhjp?(F\]lFaoFaoFhjpF\w>&Fh[lFg]l*(&FbxFg]lFao,&FaoFao Fe[qF[zFao,&&-Faen6$FbzF]_lFg]lFaoFe[qF[zFao>8A-Feo6$FhjpFhjp?(F\]lFaoFaoFhjpF\ w?(FednFaoFaoFhjpF\w>&F\\q6$F\]lFedn,$*&Fc[qFao&F_hpFa_oFao$FgbnF[z/F^jn-Fb]o6# -F[_o6#F\\q>8E-Fb]o6#,&F[]qFaoFfcnFao>Ffcn-Fb]o6#F^]q>F\bl-Fahp6#Fgbn?(F\]lFaoF aoFgbnF\w>&F\blFg]l-%$sumG6$*&&Fh[lFi`lFaoF]dnFao/Fa^l;FaoFhjp>FaalFf]q?(F\]lFa oFaoFgbnF\w>&FaalFg]l*(&F_hpFg]lFao,&FaoFaoFg^qF[zFaoFj]qFao>8B-Feo6$""(Fgbn?(F ednFaoFaoF]_qF\w?(F\]lFaoFaoFgbnF\w>&Fj^q6$FednF\]l,$*&Fe^qFao&F\hpFa_oFaoFg\q/ Fj^q-Fb]o6#Fj^q>8F-Fb]o6#,&Fj^qFaoF`zFao>F`z-Fb]o6#Fj_q@$2FdfnFj]p-F^jm6$%8This ~is~iteration~roundG,&FdfnFaoFaoFaoF\\o@$FgnF`\o-F^jm6#%?These~are~the~trained~ matricesG-F^jm6#%QThe~adjusted~weight~matrix~of~the~input~layer~isG-F^jm6#FcfpF ghm-F^jm6#%RThe~adjusted~weight~matrix~of~the~output~layer~isG-F^jm6#Fgfp-F^jm6 #%foDo~you~want~to~check~whether~the~above~matrices~actually~do~train~the~net?| +G-FS6#%4Answer~yes;~or~~no|+G>FhxFX>FenFhx@$FgnF`\o@$/FhxFcaoC+Fghm?(FednFaoFa oFbgpF\wC=-FS6$%HEnter~your~input~rule%d~as~a~1x7~matrixGFedn>FWFX>FenFW@$FgnF` \o?(F/FaoFaoF/FboC&Fa_p>FWFX>FenFW@$FgnF`\o>Fdfn-Fgdn6$FWF`z-F^jm6$%;The~interm ediate~output~isG/Fdfn*&Fa]oFaoFfgoFaoFghm>8?-Fahp6#7&Fao&FdfnFghp&FdfnF[ip&Fdf nF_ip>FgapRF+F/FiapF/F\bpF/F/Fdbp>Fgcq-Fahp6#7&-F`dn6#-Fgap6#&FgcqFihm-Fgap6#&F gcqF\^n-Fgap6#&FgcqFg]q-Fgap6#&FgcqF`[q-F^jm6$%_oThe~firing~of~the~intermediate ~output~by~the~scaling~function~yieldsGFgcqFghm>Fgcq-Ff]o6$FgcqFeo>Ffel-Fgdn6$- F[_o6#FgcqFfcn-F^jm6#%hoMultiplying~the~fired~intermediate~output~by~the~update d~output~matrix~yieldsG-F^jm6#/Ffel*&-Fb]o6#F[fqFaoFagoFaoFghm>Ffel-Ff]o6$FfelF ahp>8@-Fahp6#7&-F`dn6#-Fgap6#&FfelFihm-Fgap6#&FfelF\^n-Fgap6#&FfelFg]q-Fgap6#&F felF`[q-F^jm6$%2The~net~output~isGFjfqFghm-FS6$%FCompare~with~the~targeted~outp ut~%d~|+GFedn-F^jm6#-Faen6$FbzFednFghmF\\o@$FgnF`\o-FS6#%goIs~the~net~output~wi thin~a~"reasonable~tolerance"~from~the~targeted~output?|+G-FS6#%Jfor~each~input ~rule?~Answer:~yes;~or~no;|+GFghm>FhxFX>FenFhx@$FgnF`\o@%/FhxFi`o-F^jm6#%_oYou~ may~need~to~choose~more~iteration~in~trainnet()~to~train~the~netGC%-F^jm6#%FThe ~updated~input~and~output~matricesG-F^jm6$FcfpFgfp-F^jm6#%Uhave~the~proper~weig hts~and~the~net~has~been~trainedGFghm-F^jm6#%]oYou~may~try~to~train~the~net~wit h~different~input~and~output~rulesGF/F_pF/%)LUdecompGRF/6N%&AUGGGG%$n11GFd[oF][ oF][nF^[nF\joFgr%$numGFP%#A1G%#b1G%$AUGG%(colflagGFh[n%'norowsG%#IdG%&lowerG%$p dtG%%tempG%%EpdtGFchm%'secmulG%%rsetG%)firstmulG%)firstrowG%'secrowG%%pdt1G%+mu ltiplierG%'rownumG%%row2G%%leftG%%row1G%)typeflagG%'rowaddG%(tempaugG%#L1G%#u1G %*undocountG%(leftrowG%'assrowG%(rowsaveG%"mG%%RsetGFdhmF/C2Fghm-F^jm6#%goThe~p urpose~of~this~procedure~is~to~demonstrate~the~steps~needed~to~find~theG-F^jm6# %[pLU~decomposition~of~a~given~matrix~and~to~interact~with~the~function~to~find ~theG-F^jm6#%]pLU~decomposition~yourself.~For~more~information~type~?LUdecomp~a t~the~Maple~promptGFghm@%F[anC$-FS6#%hnEnter~a~matrix.~For~example~type~:~A:=ma trix([[0,1],[3,3]]);|+G>FagnFX>FagnFa]n?(F/FaoFaoF/4-F:6$FagnFeoC&-FS6#%FagnFX>FenFagn@$Fgn-F]o6#%$ByeG>F`zF_el?(FednFaoFao-%%r ankG6#FagnF\w@$/-Fd^o6#-%*submatrixG6%Fagn;FaoFednFb_rF_el>F`zFao@$/F`zFaoC&Fgh m-F^jm6%%,The~matrix~GFagn%I~does~not~have~a~unique~LU~factorizationG-F^jm6#%DT ype~?LUdecomp~for~more~informationGFghm-F^jm6#%CSelect~one~of~the~following~mod es:G-FS6#%:~~~1.~Demonstration~mode|+G-FS6#%8~~~2.~Interactive~mode|+G-FS6#%V~~ ~3.~No~Intermediate~steps.~Just~give~me~the~answer|+G>FfcnFX@(/FfcnFaoCT>FezFao @$Fa^n>FegnFe]o@$F[an>Fegn-Ff]oF[^r>FW-Fb]o6#Fegn>F]_l-%(vectdimG6#-Faen6$FegnF ao>FbxF]_l>F\fn-Feo6$FbxFbx?(FednFaoFaoFbxF\wC$?(F\]lFaoFaoFbxF\w>&F\fnFb_qF_el >&F\fn6$FednFednFao>85-Fahp6#,$*&F]_lFao,&F]_lFaoFaoFaoFao#FaoF\]n>FhxF]cr?(Fed nFaoFaoFhxF\w>&FjbrFa_oF_br>&FjbrFihmF\fn-F^jm6#%RThe~LU-Decomposition~of~the~m atrix~is~obtained~byG-F^jm6$%Eperforming~the~gauss~elimination~on:GFegnF\\o@$55 Fhn/Fen%%ExitGFjnFc^r>F]_l-F`bnFfar>8N-F^bnFfar@$2FedrF]_l>F]_lFedr?(FednFaoFao F]_lF\wC)>Fa^lFedn?(F/FaoFaoF/3/&Fegn6$Fa^lFednF_el2Fa^lFedr>Fa^l,&Fa^lFaoFaoFa o>FhgnF_el?(F\]l,&FednFaoFaoFaoFaoFedrF\w@$0&FegnFc\qF_el>FhgnFao@$0&FegnFhbrF_ elC$@$/FhgnFaoC$-F^jm6$%A~Perform~elimination~on~column~:GFedn-F^jm6#%E******** ****************************G@$0F^frFaoC.Fghm>Fh[lF^fr-F^jm6(%+Divide~rowGFedn% 4of~the~given~matrixGFegn%#byGF^fr>Fegn-%'mulrowG6%FegnFedn*$F^frF[zFghm-F^jm6$ %4to~get~the~matrix~:GFegn>&FjbrFa[l-Fdgr6%F\fnFedn*$Fh[lF[z-F^jm6$%RPerform~th e~same~operation~on~the~identity~matrixG-Fb]oFbfn-F^jm6$%Lto~get~the~correspond ing~elementary~matrix:G/&%"EGFa[l-Fb]o6#F[hr>Fez,&FezFaoFaoFaoF\\o@$F^dr-F]o6#% *Try~LaterGFghm?(F\]lFgerFaoFedrF\w@$FierC.>Fh[l,$FjerF[z-F^jm6*%-Multiply~rowG FednF`grFegn%$~byGFeir%4and~add~that~to~rowGF\]l>Fegn-%'addrowG6&FegnFednF\]lFe irFghm-F^jm6$%3to~get~the~matrix:GFegn>F[hr-F]jr6&F\fnFednF\]lFh[lFghm-F^jm6$Fa hrF\fnFchr>FezF\irF\\o@$F^drFc^r@$30&Fegn6$F]_lF]_lF_el0F\[sFaoC*-F^jm6(%(The~r owGF]_l%.of~the~matrixGFegn%2~is~multiplied~byG*$F\[sF[z>F[hr-Fdgr6%F\fnF]_lFe[ s>Fh[lFe[s>Fegn-Fdgr6%FegnF]_lFe[sFghm-F^jm6(Fb[sF]_lFc[sF\fnFd[sFh[lFchr>FezF\ ir>FfelFfcr>Faal&FhhrFihm?(FednF\]nFao,&FezFaoF[zFaoF\wC$>Ffel-Fb]o6#-%#&*G6$Fd crFfel>Faal*&&FhhrFa_oFaoFaalFao-F^jm6#%[pApplying~elementary~row~operations~on ~the~given~matrix~to~obtain~its~row~echelonG-F^jm6#%ioform~U,~is~equivalent~to~ pre-multiplying~the~matrix~by~the~elementary~matricesG>%"UG.Ff]s-F^jm6#/*&FaalF ao-Fb]o6#F_fnFaoFf]sFghm-F^jm6$%>The~upper~triangular~matrix~:G/Ff]s-Fb]o6#-&Fi ^o6#%*gausselimGFfar-F^jm6#%Ois~the~row~echelon~form~of~the~original~matrixGF\\ o@$F^drFc^rFghm>%"PG.F]_s-F^jm6$%SThe~product~of~the~elementary~matrices~is~giv en~byG/F]_sFaal-F^jm6$%4Which~is~equal~to~:G/F]_s-Fb]oFifl>F]_sFfelF\\o@$F^drFc ^r-F^jm6#%hnThe~lower~triangular~matrix~L~is~the~inverse~of~this~matrix~PG-F^jm 6#/F'-F^_oFiflFghm>F'F``sF\\o-F^jm6#%WTherefore~the~LU~decomposition~of~the~giv en~matrix~is:G-F^jm6#/Fa]o*&-Fb]o6#F'FaoFearFaoFghm-F^jm6#%doThis~is~the~end~of ~the~~LU~decomposition~demostration~version.~Try~other~G-F^jm6#%Bexamples~to~le arn~this~procedure.G/FfcnF\]nCao>8O-Fahp6#71%#R1G%#R2G%#R3G%#R4G%#R5G%#R6G%#R7G %#R8G%#R9G%$R10G%$R11G%$R12G%$R13G%$R14G%$R15G>8;-Fahp6#71F_[oF[eo%#r3G%#r4G%#r 5G%#r6G%#r7G%#r8G%#r9G%$r10G%$r11G%$r12G%$r13G%$r14G%$r15G>FezFao@$Fa^n>FegnFe] o@$F[an>FegnFcar>FWFear>F]_lFhar>FbxF]_l@$FaasC*>FbxFhar>F\fnF_br?(FednFaoFaoFb xF\wC$?(F\]lFaoFaoFbxF\w>FebrF_el>FgbrFao>FjbrF[cr>FhxF]cr?(FednFaoFaoFhxF\w>Fd crF_br>FfcrF\fn-%*gaussmenuGF/>F\bl%&BEGING-F^jm6$%7The~orginal~matrix~is:GFegn Fghm>F`zFao>FezFao?(F/FaoFaoF/30F`zF_el0F`zF\]nC*-FS6#%hpPlease~enter~~at~each~ step~a~row~operation~as~in~the~above~menu~to~get~the~LU-~decomposition|+G-FS6#% jn~Rj~or~Ri~=~c*Rj~+~Ri~or~Ri~=~c*Ri~>|+G>F\blFX>FenF \bl@$5FgnF`dr-F]o6#%&AdiosG@-5/F\blF[o/F\blFinC$>F`zF_el>Fb`pF_el5/F\bl%&rowecG /F\bl%&ROWECGC'>FegnFd^s?(FednFaoFaoFbxF\w@$F]fr>FegnFcgr-F^jm6$%DThe~matrix~in ~row~echelon~form~is~:GFegn>F`zF\]n>Fb`pF_el5/F\bl%%undoG/F\bl%%UNDOGC%@(/F^]qF ao>Fegn-%(swaprowG6%Fegn8DFj^q/F^]qF\]n>Fegn-Fdgr6%FegnF\\q*$FjfqF[z/F^]qFgbn?( FednFaoFaoFcdrF\w>&Fegn6$Fj]pFedn&FaapFa_o@%/Fb`pF_elC$-F^jm6$%FBefore~your~sel ection~the~matrix~was~GFegn>Fb`p,&Fb`pFaoFaoFao-F^jm6#%Xonly~one~level~of~undo~ is~permitted~in~the~demo~versionG>FezFd\s-F:6$-%$rhsGF`cl%)monomialGC%?(FednFao FaoFbxF\w@$50-%&coeffG6$Ffjs&FhbsFa_oF_el0-F_[t6$Ffjs&FdasFa_oF_elC%@$F][t>Fjfq F^[t@$Fb[t>FjfqFc[t>F\\qFedn@%/FjfqFaoC.>Fj^qF\\q>8C-%$lhsGF`cl?(FednFaoFaoFbxF \wC$@$/Fa[tFa\t>F\isFedn@$/Fe[tFa\t>F\isFedn>FegnFihs-F^jm6&%0Interchange~rowGF \is%$andGFj^q-F^jm6$%8This~is~the~new~matrix:GFegnFghm>F[hr-Fjhs6%F\fnF\isFj^q- F^jm6$%CApply~the~same~row~operations~to~:GF\fn-F^jm6$%PWe~obtain~the~correspon ding~elementary~matrix~:GFfhr>F^]qFao>FezF\irC$?(FednFaoFaoFbxF\w@$50-F_[t6$Fb\ tFa[tF_el0-F_[t6$Fb\tFe[tF_el>Fi^pFedn@%/Fi^pF\\qC+>Fegn-Fdgr6%FegnF\\qFjfq-F^j m6&FhirF\\qFagrFjfq-F^jm6$%7This~is~the~new~matrixGFegnFghm>F[hr-Fdgr6%F\fnF\\q Fjfq-F^jm6$%IBy~applying~the~same~row~operations~to~:GF\fn-F^jm6$%Pwe~obtain~th e~corresponding~elementary~matrix~:GFfhr>F^]qF\]n>FezF\ir-F^jm6#%foinvalid~row~ multiplication.~Multiplied~row~must~be~assigned~to~the~same~rowG>Fb`pF_el-F:6$F fjs%(polynomGC0>FfdlF_el>FbzF_el?(FednFaoFaoFbxF\wC$@$Fb^t@&Fc^t>Fj]pFednFf^t>F j]pFedn@$F\[t@%/FfdlF_elC$>FfdlFedn@&F][t>FgapF^[tFb[t>FgapFc[tC$>FbzFedn@&F][t >F^yF^[tFb[t>F^yFc[t>Faap-%$rowG6$FegnFj]p?(FednFaoFaoFcdrF\w>Feis&-Fb]o6#,&*&F gapFao-F_bt6$FegnFfdlFaoFao*&F^yFao-F_bt6$FegnFbzFaoFaoFa_o>F[hr-F]jr6&F\fnFfdl FbzFgap@'3/FgapFao/FfdlFj]p-F^jm6(%.multiply~row~GFbzFagrF^y%/and~add~to~rowGFf dl3/F^yFao/FbzFj]p-F^jm6(FfctFfdlFagrFgapFgctFbz-FS6-%G~~~~~~~%s~%d~%s~%d~%s~%d ~%s~%d~%s~%d~|+G%-multiply~rowGFfdlFagrFgap%(and~rowGFbzFagrF^y%6add~and~assign ~to~rowGFj]p-F^jm6$%4The~new~matrix~is~:GFegnFghm-F^jm6$%QApply~the~same~row~op erations~to~identity~matrixGF\fn-F^jm6$%Pto~obtain~the~corresponding~elementary ~matrix~:GFfhr>F^]qFgbn>Fb`pF_el>FezF\irC$-F^jm6#%@incorrect~selection.~Try~aga in.G>Fb`pF_el>Fh_pFd^s@$/-F\ao6$-Fb]o6#,&Fh_pFaoFegnF[zFaoF_elC%>F\]lFfdr?(F/Fa oFaoF//&Fegn6$F\]lF\]lF_el>F\]l,&F\]lFaoF[zFao@$3/F`ftFaoF[fsC%F\\o-F^jm6$%LYou ~obtained~the~matrix~in~row~echelon~formGFegn>F`zF\]n@$3/F`zF_elF[fs-F^jm6#%Kwa rning.~Matrix~is~not~in~row~echelon~formGFghm-FS6#%HWhat~is~the~upper~triangula r~matrix~U?|+G-F^jm6#%LEnter~your~answer~as~a~matrix.~For~example,G-F^jm6#%Atyp e:~>U:=matrix([[1,2],[0,2]]);GFghm>Ff]sFX?(F/FaoFaoF/4-F:6$Ff]sFeoC&>FenFf]s@$F gnF`\o-FS6#%1Matrix~Expected|+G>Ff]sFX@&F]htC$Fc`n>Ff]sFX50-Fiar6#-F_bt6$Ff]sFa o-Fiar6#-FaenF_it0F\it-Fiar6#-F_btF\brC&-F^jm6#%TThe~matrix~is~not~square~or~di mensions~incompatibleG-F^jm6#%0Enter~a~matrix|+G>Ff]sFX@$FgnF`\o@%0-F\ao6$-Fb]o 6#,&FegnFaoFf]sF[zFaoF_elC%-F^jm6#%PYour~answer~is~incorrect.~The~correct~matri x~isG-F^jmFfar-F^jm6#%Nwhich~is~the~matrix~A~in~its~row~echelon~formG-F^jm6$%?G ood!~The~correct~matrix~is~:~GFegnFghm>FfelFfcr>FgcqF_br>FgcqFfel?(FednF\]nFaoF d\sF\wC$>Ffel-Fb]o6#-Fj\s6$FdcrFgcq>FgcqFfelFghm-FS6#%P~~How~would~find~the~low er~triagular~matrix~L?|+G-FS6#%en~~~~~~1.~Take~the~inverse~of~the~upper~triangu lar~matrix.|+G-FS6#%`o~~~~~~2.~Take~the~inverse~of~the~product~of~the~elementar y~matrices.|+G-FS6#%A~~~~~~3.~Take~the~inverse~of~A.|+G-F^jm6#%=GFghm>FfcnFX@$FgnF`\o@%0FfcnF\]nC$-F^jm6#%XIncorrect.~The~lower~tr iangular~matrix~L~is~obtained~byG-F^jm6#%gntaking~the~inverse~of~the~product~of ~the~elementary~matricesGC$-F^jm6#%+Very~Good!GF\\oFghm-F^jm6$%ZThe~product~of~ the~elementary~matrices~E1,~E2,~..~is~P~=~GFfel>F]_sFfelFghm-FS6#%HWhat~is~the~ lower~triangular~matrix~L?|+G-FS6#%8~~~~~~1.~inverse~of~P.|+G-FS6#%R~~~~~~2.~tr anspose~of~the~row~echelon~form~of~P.|+G-FS6#%N~~~~~~3.~product~of~the~elementa ry~matrices.|+GFi\uFghm>FegpF``s>FfcnFX>FenFfcn@$FgnF`\o@%0FfcnFaoC$-F^jm6#%gnI ncorrect.~The~lower~triangular~matrix~L~is~the~inverse~of~PG-F^jm6#/)F]_s%#-1G- Fb]o6#FegpC$Fh]uF\\o>F'Fegp>Ff]sFegn-FS6#%TTo~verify~the~answer,~multiply~the~m atrices~L~and~UG-F^jm6$%$LU=G/*&Fi`sFao-Fb]o6#Ff]sFao-Fb]o6#-Fj\s6$F'Ff]sFghm-F ^jm6#/%OIs~this~product~the~same~as~the~given~matrix~AGFi`u-FS6#%4Answer~yes;~o r~no;|+G>FfcnFX>FenFfcn@$F^drF`\o@%/FfcnFi`o-F^jm6#%1Redo~the~problemGC$-F^jm6# %WYou~obtained~the~LU~decomposition~of~the~given~matrix:G-F^jm6#/Fh`sFi`uFghm-F ^jm6#%foThis~is~the~end~of~the~interactive~LUdecomp~procedure.~Please~enter~ano therG-F^jm6#%hnmatrix~and~execute~the~procedure~to~learn~the~steps~involved.G/F fcnFgbnC6>FezFao@$Fa^n>FegnFe]o@$F[an>FegnFcar>FWFear>F]_lFhar>FbxF]_l>F\fnF_br ?(FednFaoFaoFbxF\wC$?(F\]lFaoFaoFbxF\w>FebrF_el>FgbrFao>FjbrF[cr>FhxF]cr?(FednF aoFaoFhxF\w>FdcrF_br>FfcrF\fn?(FednFaoFao,&F]_lFaoF[zFaoF\wC%?(Fa^lFednFaoF]_lF \w@$0F`erF_elC%@$0Fa^lFednC(>F[hr-Fjhs6%F\fnFa^lFedn>Fegn-Fjhs6%FegnFa^lFednFgh m>FezF\irF\\o@$F^drF^irFghm%&breakG@$F]frC%>FhgnFao?(F\]lFgerFaoF]_lF\w@$Fier>F hgnF_el@$FjfrC%>F[hr-Fdgr6%F\fnFednFfgr>FegnFcgr>FezF\ir?(F\]lFgerFaoF]_lF\w@$F ierC%>F[hr-F]jr6&F\fnFednF\]lFeir>FegnF\jr>FezF\ir@$FjjrC%>F[hrFg[s>FegnF[\s>Fe zF\ir>FfelFfcr?(FednF\]nFaoFd\sF\w>FfelFg\s>F]_sFfel>F'F``s-F^jm6#%NThe~LU~deco mposition~of~the~given~matrix~is~:GFe`sF/6&FenF]_sF'Ff]sF/%*matrixmulGRF/6'FP%" BGF][nF^[nF^[rFdhmF/C+-F^jm6#%XThe~purpose~of~this~procedure~is~to~show~the~pro cess~ofG-F^jm6#%enmultiplying~two~matrices~A~and~B~and~obtaining~the~entriesG-F ^jm6#%9of~the~product~matrix~ABGFghm@)Fj\nC$>FWFa]n>FhxF[^nFa^nC(>FWFa]n-F^jm6# /%FhxFX?(F /FaoFaoF/F_`nC$Fi\o>FhxFX-F^jm6#/%FWFX?(F/FaoFaoF/FboC$Fi\o>FWFXF]]o-FS6#%BPlease~ enter~the~second~matrix~B|+G>FhxFX?(F/FaoFaoF/F_`nC$Fi\o>FhxFXF`fo-Fh`n6#%(Erro r!!G@%/F^^oF]bnC'>Fedn-Feo6$F\^oF_bn-F^jm6#/%DThe~product~of~the~two~matrices~A B~G*&Fa]oFaoFcfoFao-F^jm6#%7is~obtained~as~followsG?(FfcnFaoFao-F^bnFa_oF\w?(F` zFaoFao-F`bnFa_oF\w>&Fedn6$FfcnF`z%"*G?(FfcnFaoFaoF\^oF\w?(F`zFaoFaoF_bnF\wC+F\ \o@$F_\oF`\o-FS6%%inMultiply~row~%d~of~the~matrix~A~and~column~%d~of~the~matrix ~B|+GFfcnF`z-FS6%%Pto~get~the~(%d,%d)-th~entry~of~the~product~AB~|+GFfcnF`z-F^j m6#/*&-Fb]o6#-F_bt6$FWFfcnFao-Fb]o6#-Ff]o6$-Faen6$FhxF`zFeoFao-%*innerprodG6$F_ ]vFe]vFghm>F\\vFg]v-F^jm6#%Land~write~the~entry~into~the~product~matrixG-F^jm6# /%#ABG-Fb]oFa_o-F^jm6#%ZThe~matrix~dimensions~are~incompatible~for~multiplicati onGFghm-F^jm6#%HEnd~of~matrix~multiplication~procedure.G-F^jm6#%KTry~your~own~e xamples~to~learn~the~processGF/F_pF/%*trproductGRF/62F][oFPFgguFgjq%#B1GF^[oFjd oF_[oF[eo%(mult_ABG%)trans_ABGFhdo%(trans_BG%&tA_tBGFd[o%&tB_tAGFdhmF/C3>Fhx.Fh x>Ffcn.Ffcn-F^jm6#%YThe~purpose~of~this~program~is~to~check~the~conjecture~:G-F ^jm6#%Yif~the~transpose~of~the~product~of~two~matrices~is~equalG-F^jm6#%Lto~the ~product~of~their~transpose;~that~is,G-F^jm6#/)Fa^vFijm*&FdeoFao)FfcnFijmFaoF\\ o@$F_\oF`\o@&F[anC*-FS6#%aoPlease~Enter~the~first~matrix.~For~example,~A:=matri x([[1,2],[2,3]]).|+G>F`zFX?(F/FaoFaoF/4-F:6$F`zFeoC$Fi\o>F`zFX-F^jm6$F_]o/FhxFf go-FS6#%BPlease~Enter~the~second~matrix~B|+G>FednFX?(F/FaoFaoF/4-F:6$FednFeoC$F i\o>FednFX-F^jm6$F_]o/FfcnFb^vFj\nC'>F`zFe]o>Fedn-Ff]oF_^n-F^jm6$%6The~first~ma trix~is~:GFhavFghm-F^jm6$%=The~second~given~matrix~is:~GFebvF\\o@$F_\oF`\o>F]_l F]ho>F\]lF_ho>F^jnFh[v>Fa^lFj[v@%3/F^jnF\]l/F]_lFa^lC=>F_fn-&Fi^o6#Fgdn6$F`zFed n>Fagn-Fh^oF]^s>Fdfn-Fh^oFf\l>Fegn-Fh^oFa_o>Fhgn-F\dv6$FdfnFegn>Fbx-F\dv6$FegnF dfn-F^jm6$%OThe~transpose~of~the~product~transpose(AB)~is~G/Ff`v-Fb]oFj^rF\\o@$ F_\oF`\o-F^jm6#%ZThe~product~of~the~transpose~transpose(A)transpose(B)~is~G-F^j m6#-Fb]o6#FhgnF\\o@$F_\oF`\o-F^jm6#%ZThe~product~of~the~transpose~transpose(B)t ranspose(A)~is~G-F^jm6#-Fb]oF][qF\\o@$F_\oF`\o-FS6#%enWhich~one~of~the~followin g~results~will~then~hold~for~any|+G-FS6#%fnmatrices~A~and~B?~Enter~your~answer~ by~selecting:~1;~or~2;|+G-FS6#%Q~~~1.~transpose(AB)~=~transpose(A)*transpose(B) |+G-FS6#%Q~~~2.~transpose(AB)~=~transpose(B)*transpose(A)|+G>FezFX?(F/FaoFaoF// FezFaoC$-F^jm6#%JThis~is~not~correct.Try~the~other~choice.G>FezFX-F^jm6#%LIndee d,~for~the~matrices~A~&~B~you~entered,G-F^jm6#%Jtranspose(AB)~=~transpose(B)*tr anspose(A)GFghmF_do-F^jm6#%_oThe~two~matrices~are~not~compatible.~We~cannot~ver ify~this~statementGFghmF/F_pF/F`_oRF/6PFd[oFPFgjqF][nF^[nF\jo%#i1G%#j1GFe\rFgr% &cofacG%#IDGFijqFb[rFf\rF_[rF^jo%"CG%$AdjG%"dG%%AUG1GFchmFhjqF][oFa[rF]\rFj[rF\ \rFc[rFd[rFe[rFi[rF[\r%$eqsGFg[rF[[rFh[rF^\rFggu%#i2G%#j2G%&temp1GFa\rFb\rFc\rF d\rFdhmF/C3Fghm-F^jm6#%ipThe~purpose~of~this~function~is~to~demonstrate~the~ste ps~to~find~the~inverse~of~a~matrix~usingG-F^jm6#%jpeither~the~Gauss-Jordan~algo rithm~or~the~Adjoint~method.~In~selecting~the~interactive~mode,~youG-F^jm6#%ipc an~immediately~check~if~you~have~learned~this~algorithm.~The~nostep~mode~dispal ys~the~inverseG-F^jm6#%^pwith~no~intermediate~steps.~For~more~information~type~ ?inverse;~at~the~Maple~promptGFghm@%F[anC%-F^jm6#%gnEnter~a~matrix.~For~example ~type~:~A:=matrix([[0,1],[3,3]]);G-FS6#%7Please~enter~a~Matrix|+G>FfcnFX>FfcnFa ]n?(F/FaoFaoF/4-F:6$FfcnFeoC&-FS6#%3A~matrix~Expected|+G>FfcnFX>FenFfcn@$FgnF`\ o@&0FigoF[hoC%-F^jm6$%8The~matrix~you~entered~G/FhxFago-F^jm6#%8~is~not~a~squar e~matrixGF`\o/-Fd^oF\goF_elC%F`[w-F^jm6#%gnhas~a~zero~determinant.~Therefore~th e~inverse~does~not~existGF`\o-F^jm6$FaboFc[wFghmF^`rFa`rFd`rFg`r>FWFX@(/FWFaoC( >F_fnFigo>F^jnF[ho@%/F^jnF_fnC*-FS6#%=Which~method~do~you~prefer?|+G-FS6#%>~~~~ ~~1.~Gauss-Jordan~method|+G-FS6#%9~~~~~~2.~Adjoint~method|+G-FS6#%8|+G>FWFX>FenFW@$FgnC$F]jmF_jm@&/FWF\]nC9Fghm-F^jm6#%ioIn~this~method~ we~find~the~cofactor~of~each~entry~and~form~the~cofactor~matrixG-F^jm6#%aoThe~c ofactor~of~(i,j)th-entry~is~given~by~(-1)^(i+j)*det(minor(A,i,j))GFghm>Fagn-Feo 6$F_fnF_fn?(Fa^lFaoFaoF_fnF\w?(F]_lFaoFaoF_fnF\w>&Fagn6$Fa^lF]_lF^\v>FhxFfcn-F^ jm6$%9The~original~matrix~is:~GFbfoF\\oFghm?(Fa^lFaoFaoF_fnF\wC$-FS6$%R~Now~fin d~the~cofactors~of~the~entries~in~row~%d|+GFa^l?(F]_lFaoFaoF_fnF\wC,@$FgnF`\o>F g^w*&)F[z,&Fa^lFaoF]_lFaoFao-Fd^o6#-%&minorG6%FhxFa^lF]_lFao-F^jm6$%/In~the~mat rix~GFbfo-FS6&%KThe~minor~of~the~(%d,%d)-th~entry~%d~is~:|+GFa^lF]_l&FhxFh^w-F^ jm6#/&F\fnFh^w-&Fi^o6#F\`wF]`wFghm-F^jm6$%7and~it's~cofactor~is:~G/&FjbrFh^wFg^ wFghm-F^jm6$%=The~updated~cofactor~matrix:G/FjbrF_evF\\o@$FgnF`\o-F^jm6#%`oThe~ adjoint~matrix~is~the~transpose~of~the~cofactor~matrix.~ThereforeG-F^jm6#/%>The ~adjoint~of~the~matrix~is:G-Fh^oFj^rF\\o@$FgnF`\o-F^jm6#%_oThe~inverse~of~the~m atrix~A~is~(1/det(A))*Adjoint(A)~and~therefore~:GFghm>Fbx-&Fi^o6#Fd^oF^z@$0FbxF aoC%-F^jm6$%GSince~the~determinant~of~the~matrix~isGFbx-F^jm6$%7The~inverse~of~ A~~is~:G/)FhxFi_u*&-Fb]o6#F]bwFaoFbxF[zFghm-F^jm6$%7which~is~equivalent~toG-Fb] o6#-F^_oF^zF\\o-F^jm6$%>We~can~verify~this~by~showingG/*&FcfoFaoFgcwFao-Fb]o6#- Fj\s6$FhxFicwFa\wC>-F^jm6#%foWe~find~the~inverse~of~the~matrix~A~by~forming~the ~augmented~matrix~[A~|gr~I]G-F^jm6#%gowhere~I~is~the~identity~matrix.~Then~use~ elementary~row~operations~to~reduceG-F^jm6#%`oit~to~a~matrix~of~the~form~[I~|gr ~B].~The~matrix~B~is~the~inverse~of~A.GFghm>FdfnFb^w?(F`zFaoFaoF_fnF\w?(FednFao FaoF_fnF\w>&FdfnF^dvF_el?(F`zFaoFaoF_fnF\w>&Fdfn6$F`zF`zFao>FhxFfcn>Fegn-%(augm entG6$FhxFdfn>F_fnFhar>F^jnFdit-F^jm6$%CThe~original~augmented~matrix~is~:GFegn Fghm-F^jm6#%enApply~the~elementary~row~operations~to~[A~|gr~I]~and~convertG-F^j m6#%Sthe~matrix~to~its~reduced~row~echelon~form~[I~|gr~B]GF\\o@$FgnF`\oFghm-F^j m6#%NWe~employ~the~Gauss~-~Jordan~elimination~on~:GF[[uF\\o@$FgnF`\o?(F`zFaoFao F_fnF\wC*@$/&FegnFeewF_elC(>F\]lF\]n?(F/FaoFaoF//&Fegn6$F\]lF`zF_el>F\]l,&F\]lF aoFaoFao-F^jm6&%5Interchange~the~row~GF`z%%and~GF\]l>Fegn-Fjhs6%FegnF\]lF`z-F^j m6$%)To~get~:GFegnF\\o@$0F_gwFaoC&-F^jm6&%,Divide~row~GF`z%$by~GF_gw>Fegn-Fdgr6 %FegnF`z*$F_gwF[z-F^jm6$%*To~get~:~GFegnF\\o>F\]l,&F`zFaoFaoFao@$1F\]lF_fn?(F/F aoFaoF/3Fcgw2F\]lF_fn>F\]lFggw@$3/F\]lF_fn0FdgwF_el-F^jm6$%>Perform~elimination ~on~columnGF`zFghm?(FednFaiwFaoF_fnF\w@$0&Fegn6$FednF`zF_elC'-F^jm6(%.multipliy ~rowGF`zFagr,$FbjwF[zFjirFedn>Fegn-F]jr6&FegnF`zFednFhjwF_hwF\\o@$FgnF`\o?(Fedn ,&F`zFaoF[zFaoF[zFaoF\w@$FajwC'Fejw>FegnFjjwF_hwF\\o@$FgnF`\o-F^jm6#%goThe~augm ented~matrix~[A~|gr~I]~is~now~in~the~form~[I~|gr~B],~with~B~=~inverse(A)G-F^jm6 $%>F_fn-Fiar6#-Faen6$FfcnFao>F^jn-Fiar6#-F_btF[]x>Fh[lFh[w>FdfnFb^w?(F`zFaoFaoF_ fnF\w?(FednFaoFaoF_fnF\w>FaewF_el?(F`zFaoFaoF_fnF\w>FdewFao>FhxFfcn>FaalFhew-F^ jm6$%BThe~determinant~of~this~matrix~isGFh[lFghm-FS6#%I~~Does~the~inverse~of~th e~matrix~exist?|+G-FS6#%8~~answer~~yes;~or~no;~|+G>FWFX?(F/FaoFaoF/45/FWFcao/FW Fi`oC&>FenFW@$FgnF`\oFaau>FWFX@&3Fg^x0Fh[lF_el-F^jm6#%WThis~is~not~correct.~The ~inverse~of~the~matrix~exists.G3Ff^xF^_x-F^jm6$%PGood!~Proceed~to~find~the~inve rse~of~the~matrixGFhxFghm-FS6#%Z~~Which~one~of~the~following~methods~you~prefer ~to~use~?|+G-FS6#%jn~~~~1.~Show~that~the~matrix~is~row~equivalent~to~the~identi ty.|+G-FS6#%S~~~~2.~Use~the~Adjoint~method~to~find~the~inverse|+G-FS6#%8