; TeX output 1996.03.06:1257so'^DtGGcmr17The7tGGcmss17vectoqrq:package!", cmsy10 XQ cmr12NicrkE ord2K cmsy8y@$ߤN cmtt9nde@dcre.leeds.ac.uk&37 1994/09/16+1!Kt : cmbx9AbstractEoo cmr9Thiswpac9k|rageprovidesasetofnewcommandsforrepresentingvectors bincv|rariousw9ays.Theccommonly-usedbAoldandunderlinednotationsarebsuppAorted,as isthe`hat'notationforrepresen9tingunitvectors. MacrosarebalsoTpro9videdtorepresentaroworcolumnvectorasasetofelements. 荍I Nff cmbx121aLIntros3ductionIK`y cmr10L5ffٓRcmr7A͉TU>'ExX2 b> cmmi10"uӲprovides)the!a9Pcharacterwhichnamesthevector.hpBydefault,>the rstandlastelementsIare%\constructedfromthischaracterandthesubscripts`1'andn,.respGectively*.aAnIoptionalargumentallows nalsubscriptsotherthanntobGespeci ed.s$Thesub-Iscriptsforthe rstelementcannotbGealteredinthisway*,zbutthenitisnotlikelyIthatNyouwillwanttochangethisoften.MpIfyoudoneedtochangeit,thecommandb\firstelementI\firstelementUUcanbGeused.qT*able2showssomesampleoutputfor\irvec.Iffr @ -:q% cmsy6L|{Ycmr8ThisX leisv1.0,lastrevised1994/09/16. [-:yLAddress:cScÎho#2}{%I31p2\setcounter{vec@elem}{#2}I32p2\whiledo{\value{vec@elem}<#3}%I33yw^{{#1}_{\thevec@elem},\stepcounter{vec@elem}}%I34p2{#1}_{#3}}{{#1}_{#2}}}}'|\cvecIW*eZde ne\cvecinasimilarwayZto\rvec,[+onlyhereweiteratewithinanarray IenvironmentUUandgenerateavectorelementandalinebreakoneachiteration.I35S\newcommand{\cvec}[3]{%I36]\ifthenelse{#3>#2}{%I37f\setcounter{vec@elem}{#2}I38f\begin{array}{c}I39p2\whiledo{\value{vec@elem}<#3}%I40yw^{{#1}_{\thevec@elem}\\\stepcounter{vec@elem}}%I41p2{#1}_{#3}I42f\end{array}}{{#1}_{#2}}}4'&soh e \Yff fjff\bvec{a},UU\buvec{a}ffa,@^UUaDfjfffjff\svec{a},UU\suvec{a}ffa, cmmi10 0ercmmi7K`y cmr10ٓRcmr7u cmex10/