; TeX output 1997.12.22:2031sotoNff cmbx12Theffpackage߆Tff cmtt12easyvector&K`y cmr10EnricoUUBertolazzi7': cmti10L}'aboratoriodiMatematic}'aApplicataeMeccanicaComputazionale X8fDip}'artimentodiIngegneriaMeccanicaeStrutturale\Universitade}'gliStudidiT;rentoXMesiano,T;r}'ento,ItalyqߤN cmtt9mailto:enrico.bertolazzi@ing.unitn.it4t : cmbx9Abstracto cmr9|egTheeasyvectorpac9k|rageisasimplemacropack|ragethatpro- 4videsTaC-lik9esyntaxforwritingvectorsormatrices.!čContents"V cmbx101+SomeTexampleswith cmmi10;"(comma). =^Thepackqageoptiondefinevectorsmeansthatthecommand\aa...\zzOanda\AA...\ZZIareprede nedasvectors.R Italsode nethecommands\Balpha,O\Bbetacandsoon,asbGoldgreekvectors.Thelatexcommands\aa,\AA,\gg,O\l,&\ss,\SSR\ttcaresavedcinthecommands\oldxxwherexxisthenameofOtheUUoldcommand.!2ݍO2gLUseffofthe\newvectorcommandOTheUUgeneralsyntaxof\newvectorcommandisc\newvector[\cmda,\cmdb]{cmd}Oorc\newvector(a)[cmd]OIn^the rstcase, itcreatesthenewcommand(macro)\cmdwhichexecutes O\cmda2\wheninscalarmoGde,iand\cmdbwheninvectormode.InthesecondOcaseditcreatesanewcommand\cmdwhichsubstitutestheletter\mathit{a}Owhen#ninscalar,VmoGdeand\mathbf{a}wheninvectormode.ScalarmodeisOactivqatedUwhen\cmdisimmediatelyfollowedUby[.ZInscalarmoGdeeverythingObGetween\[and](withbalancing)isassumedtobeindices.F*orexampletheOcommandsFT/5tffNXXfft; \newvector[\alpha,\beta]{W} \newvector[X,\mathbf{X}]{X} \[?\W=(\W[i,j]),\qquad\X=(\X[i,j;k])\] generatek N4=(  0ercmmi7i;j j);X=(Xki;j)M˄XffffffNHڍ^TheUUstructureofthe[::: ]commandisthefollowingƠs$- cmcsc10ThepUTackage%7 cmtcsc10easyvectorb\3o+[i,j,...,k;x,y,...,z]Ewhere i,j,...,karesubscriptsandx,y,...,zaresupGerscripts.>Thecharacter ;jʲisusedasaseparatorbGetweenjdi erentindices,p(andthecharacter;separatessubscriptsmFandsupGerscripts.TherearenolimitsonthenumbermFofindices,sCandtheUUcoGdeisreentrant,UUasthefollowingexampleillustrates[؍!/51ffN㝍ff2 \newvector(a)[av] \newvector(b)[bv] \[?\av=\pmatrix{\av[1,1]&\av[1,2]\crm\av[2,1]?&\av[2,2]\cr},\qquad\bv?=\left\{\bv[\gamma,\bv[i,j;k];a]\right\} \] proGducesq΍S\a=^u cmex10 4aٓRcmr71;1%Ëa1;2 4a2;1%Ëa2;27c^@j;b=`n qļba{ n9;t}\cmti7bj8O \cmmi5ki;j:`oM˄ffffffNl͓34LUseffofthe!32commandIn:somecircumstancesitisusefultoforcevectormoGdealsowhenusingindices.ItUUispGossiblebyusingthecharacter!bGefore[B%!/5ҘffNU7U7ffט卍㊫ \newvector(z)[zzz] \[?\zzz[1,2,3]\neq\zzz![1,2,3]\] proGducesUUthefollowingoutput:#z1;2;3q !", cmsy106=z1;2;3M˄U7ffffffNS44LUseffofthe\newcustomvectorcommandInD(somecircumstancesthecommand\newcustomvectorcanbGeuseful.>?Isisessentiallyithe\newvectorcommandwithanextraargumentthatisamacroforUUmanagetheindexpart.Cc]!/5JffNXjXjffJ cmmi10 0ercmmi7O \cmmi5K`y cmr10ٓRcmr7Zcmr5u cmex10c