{VERSION 4 0 "IBM INTEL LINUX22" "4.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "Times" 1 18 0 0 0 0 2 2 2 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "T ext Output" -1 2 1 {CSTYLE "" -1 -1 "Courier" 1 10 0 0 255 1 0 0 0 0 0 1 3 0 3 0 }1 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Warning" 2 7 1 {CSTYLE "" -1 -1 "" 0 1 0 0 255 1 0 0 0 0 0 0 1 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "R3 Font 0" -1 256 1 {CSTYLE "" -1 -1 "10x20 " 1 20 0 0 0 0 2 2 2 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 } {PSTYLE "R3 Font 2" -1 257 1 {CSTYLE "" -1 -1 "Courier" 1 14 0 0 0 0 2 2 2 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "R3 Font 3" -1 258 1 {CSTYLE "" -1 -1 "Times" 1 24 0 0 0 0 2 2 2 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "R3 Font 4" -1 259 1 {CSTYLE "" -1 -1 "Times" 1 36 0 0 0 0 2 1 2 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }} {SECT 0 {PARA 7 "" 1 "" {TEXT -1 50 "Warning, the name changecoords ha s been redefined\n" }}{EXCHG {PARA 259 "" 0 "" {TEXT -1 41 "\n \+ Maple Stuff with Vectors\n" }}{PARA 0 "" 0 "" {TEXT -1 295 "Her e are some Maple examples with vectors. They illustrate the syntax \nof some useful commands for vector operations, etc. You can make\n the commands ``happen'' by hitting RETURN at the end of any input\nli ne. Input lines are in red on a color monitor, and they start\nwit h a > symbol." }}{PARA 0 "" 0 "" {TEXT -1 125 "\nTo work with vect ors, the first step is to load a package of vector things,\ncalled \+ linalg. Here's how to load it:\n\n" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "with( linalg );" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 321 "The result is to load a whole slew of vector- and matrix-oriente d commands (most\nof which we'll have no use for). Note that among the commands loaded\nare crossprod and dotprod. They do \+ what you'd think.\n\nLet's define some vectors for Maple to work with. We do so using the vector\ncommand, as follows:\n\n" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 23 "v := vector( [1,2,3] );" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 23 "w := vector( [4,5,6] );" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 45 "Now let's do some things with these vectors:\n" }} {PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "dotprod( v,w );" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "dotprod( w,v );" }}}{EXCHG {PARA 0 "> " 0 " " {MPLTEXT 1 0 17 "crossprod( v,w );" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "crossprod( w,v );" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 26 "Does that look right? \n\n" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 22 "n := crossprod( v,w );" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 18 "crossprod( n, n );" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 22 "c rossprod( v+w, v-w );" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 20 "cr ossprod( 2*v,3*v);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "2*v+3* w;" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 78 "That's all very nice, but w hat's the numerical answer?\n\nHere's how to get it:\n" }}{PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 9 "evalm(\");" }}{PARA 0 "" 0 "" {TEXT -1 149 "The evalm command ``evaluates'' a vector or matrix to\nmore or \+ less numerical form.\n\n\nHere's another useful linear algebra style \+ command.\n\033" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 41 "m := matrix( [[1, 2,3],[2,3,4],[3,4,5]] );" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "rref(m); " }}}}{MARK "14" 0 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }