{VERSION 6 0 "IBM INTEL NT" "6.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 1 }{CSTYLE "2D Output" 2 20 "Times" 1 12 0 0 1 1 2 2 2 0 0 2 0 0 0 1 }{CSTYLE "Bookmark" -1 256 "" 0 0 0 128 0 1 0 0 0 0 0 0 0 0 0 1 } {CSTYLE "word" -1 257 "" 0 0 128 0 0 1 0 0 0 0 0 0 0 0 0 1 }{CSTYLE "b ookmark" -1 258 "" 0 0 0 128 0 1 0 0 0 0 0 0 0 0 0 1 }{CSTYLE "paragra ph" -1 259 "" 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 }{CSTYLE "index" -1 260 "" 0 0 0 128 0 1 0 1 0 0 0 0 0 0 0 1 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Heading 1" -1 3 1 {CSTYLE "" -1 -1 "Times" 1 18 0 0 0 1 2 1 2 2 2 2 1 1 1 1 }1 1 0 0 8 4 1 0 1 0 2 2 0 1 }{PSTYLE "Headi ng 2" -1 4 1 {CSTYLE "" -1 -1 "Times" 1 14 0 0 0 1 2 1 2 2 2 2 1 1 1 1 }1 1 0 0 8 2 1 0 1 0 2 2 0 1 }{PSTYLE "Text Output" -1 6 1 {CSTYLE " " -1 -1 "Times" 1 12 0 0 1 1 2 2 2 2 2 2 2 1 3 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Warning" -1 7 1 {CSTYLE "" -1 -1 "Courier" 1 10 0 0 255 1 2 2 2 2 2 1 1 1 3 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Maple Output" -1 11 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }3 3 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Title" -1 18 1 {CSTYLE " " -1 -1 "Times" 1 18 0 0 0 1 2 1 2 2 2 2 1 1 1 1 }3 1 0 0 12 12 3 0 3 0 2 2 19 1 }{PSTYLE "Definition" -1 256 1 {CSTYLE "" -1 -1 "Microsoft \+ Sans Serif" 1 12 0 64 128 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 4 2 3 0 3 0 2 2 0 1 }{PSTYLE "Item" -1 257 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 6 0 3 0 3 0 2 2 0 1 }{PSTYLE "Comment" -1 258 1 {CSTYLE "" -1 -1 "Microsoft Sans Serif" 1 12 128 0 128 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 3 0 3 0 2 2 0 1 }{PSTYLE "lem" -1 259 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 128 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "proof" -1 260 1 {CSTYLE "" -1 -1 "Times " 1 12 128 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 } {PSTYLE "thm" -1 261 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 128 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 3 0 3 0 2 2 0 1 }{PSTYLE "prob" -1 262 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 255 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 3 0 3 0 2 2 0 1 }{PSTYLE "code" -1 263 1 {CSTYLE "" -1 -1 "Comic S ans MS" 1 10 128 0 128 1 2 1 2 2 2 1 3 1 3 1 }1 1 0 0 0 0 3 12 1 0 2 2 0 1 }{PSTYLE "comment" -1 264 1 {CSTYLE "" -1 -1 "Times" 1 12 128 0 0 1 2 2 2 2 2 2 1 1 1 1 }3 1 0 0 0 0 3 0 3 0 2 2 0 1 }{PSTYLE "Author " -1 265 1 {CSTYLE "" -1 -1 "Microsoft Sans Serif" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 8 8 3 0 3 0 2 2 0 1 }} {SECT 0 {EXCHG {PARA 18 "" 0 "" {TEXT -1 23 "The ra and la tutorial" }}{PARA 0 "" 0 "" {TEXT 260 2 "ra" }{TEXT -1 5 " and " }{TEXT 260 2 "l a" }{TEXT -1 360 " are words in the MCtools package which respectively will take a sequence of expressions and strings and return respective ly an asciimath string (surrounded by backquotes) suitable for display ing typeset math in mathclass homework or a latex string surrounded by dollar signs suitable for exporting to a tex file from Maple (so far \+ just the classic interface.)" }}{PARA 0 "" 0 "" {TEXT -1 202 "Both of \+ these words call on the word rascim, a word in the MCtools package wh ich will take an expression and convert it to asciimath or latex depen ding on whether the Latex= option is set to no or yes." }}{PARA 0 "" 0 "" {TEXT -1 36 "Here is the help message for rascim " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "rascim(Help=yes);" }}{PARA 6 "" 1 " " {TEXT -1 53 "rascim(expr) converts an expression into an asciimath" }}{PARA 6 "" 1 "" {TEXT -1 171 "expresion suitable for mathclass homew ork. Use ra(expr sequence) to convert a sequence of expressions and st rings into an asciimath expression surrounded by backquotes `. " }} {PARA 6 "" 1 "" {TEXT -1 166 "It also can return a latex expression. U se la(expr sequence) to convert a sequence of expressions and strings \+ into a latex expression surrounded by dollar signs $. " }}{PARA 6 " " 1 "" {TEXT -1 8 "options:" }}{PARA 6 "" 1 "" {TEXT -1 36 "Latex=no \+ change to yes to get latex" }}{PARA 6 "" 1 "" {TEXT -1 79 "Surds=yes \+ This does surds for powers of roots rather than fractional exponents" }}{PARA 6 "" 1 "" {TEXT -1 76 " change this to no if you wan t the usual crappy fractional powers." }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 161 "The help by necessity rather terse and not at all comple te. This page is intended as a more complete primer of the current co nversion capablilities of la and ra" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{SECT 0 {PARA 3 "" 0 "" {TEXT -1 11 "la examples " }}{EXCHG {PARA 0 "" 0 "" {TEXT -1 314 "If you want latex output to b e processed as latex (using the word latexit from MCtools), you need t o type underscoreLATEX at the beginning of a text line as shown below. To turn off latex processing, you need to type underscoreXETAL at th e end. See below where we stop and compare with the pdf file of this \+ page." }}{PARA 0 "" 0 "" {TEXT -1 6 "_LATEX" }}}{EXCHG {PARA 0 "" 0 " " {TEXT -1 104 "You can typeset integrals and integral equations with \+ la. Use big as shown to make the integral larger." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 102 "mcprint(la(Int(x^2,x=0..1)));mcprint(la(bi g,Int(sin(theta),theta=0..Pi)=int(sin(theta),theta=0..Pi)));" }}{PARA 6 "" 1 "" {TEXT -1 24 "$\\int_\{0\}^\{1\}x^\{2\}\\,d x$" }}{PARA 6 "" 1 "" {TEXT -1 56 "$\\displaystyle\\int_\{0\}^\{\\pi \}\\sin(\\theta)\\ ,d \\theta = 2$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 30 "We can do inde finite integrals" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 63 "mcprint (la(big,Int(x^2,x),\"\\\\ \\\\ \",big,Int(sin(theta),theta)));" }} {PARA 6 "" 1 "" {TEXT -1 76 "$\\displaystyle\\int x^\{2\}\\, d x\\ \\ \+ \\displaystyle\\int \\sin(\\theta)\\, d \\theta$" }}}{EXCHG {PARA 0 " " 0 "" {TEXT -1 68 "We can do ordinary derivatives and partial derivat ives, small or big" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 61 "mcpri nt(la(Diff(sin(x*y),x)));mcprint(la(Pdiff(sin(x*y),x)));" }}{PARA 6 " " 1 "" {TEXT -1 27 "$\\frac\{d\}\{d x\}\\ \\sin(x\\,y)$" }}{PARA 6 "" 1 "" {TEXT -1 41 "$\\frac\{\\partial\}\{\\partial x\}\\ \\sin(x\\,y)$ " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 69 "mcprint(la(big,Diff(sin (x*y),x)));mcprint(la(big,Pdiff(sin(x*y),x)));" }}{PARA 6 "" 1 "" {TEXT -1 40 "$\\displaystyle\\frac\{d\}\{d x\}\\ \\sin(x\\,y)$" }} {PARA 6 "" 1 "" {TEXT -1 54 "$\\displaystyle\\frac\{\\partial\}\{\\par tial x\}\\ \\sin(x\\,y)$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 101 "We c an do products and sums, big and small. If you want text in la, you m ust use tex(\" \") as shown." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 208 "mcprint(la(tex(\"The product of the first $n$ integers is \"),b ig,Product(i,i=1..n)),\" = \",n!,\" = \",GAMMA(n+1));\nmcprint(la(tex( \"The sum of the first $n$ squares is \"),big,Sum(i^2,i=1..n),\"=\",su m(i^2,i=1..n)));" }}{PARA 6 "" 1 "" {TEXT -1 99 "$\\mbox\{The product \+ of the first $n$ integers is \}\\displaystyle\\prod_\{i = 1\}^\{n\}i$ \+ = n! = GAMMA(n+1)" }}{PARA 6 "" 1 "" {TEXT -1 163 "$\\mbox\{The sum of the first $n$ squares is \}\\displaystyle\\sum_\{i = 1\}^\{n\}i^\{2\} =\\frac\{1\}\{3\}\\,\{n + 1\}^\{3\} + \\frac\{-1\}\{2\}\\,\{n + 1\}^\{ 2\} + \\frac\{1\}\{6\}\\,n + \\frac\{1\}\{6\}$" }}}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 151 "We ca n do inequalities, although if you want greater than inequalities, you have to build them as shown, without running them through the maple p arser." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 63 "mcprint(la(x<=y)) ,mcprint(la(x>=y)),mcprint(la(x,\" \\\\geq \",y));" }}{PARA 6 "" 1 "" {TEXT -1 10 "$x \\leq y$" }}{PARA 6 "" 1 "" {TEXT -1 10 "$y \\leq x$" }}{PARA 6 "" 1 "" {TEXT -1 10 "$x \\geq y$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 38 "We can do piecewise defined functions" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 50 "mprint(la(g(x)=piecewise(x<0,x-2,x <3,x^2 ,x<4)));;" }}{PARA 6 "" 1 "" {TEXT -1 155 "$g \\left( x \\right) = \\ left\\\\\{\\begin\{array\}\{ll\} x - 2 & \\mbox\{ if \}x < 0 \\\\ x^ \{2\} & \\mbox\{ if \}x < 3 \\\\ x < 4 & \\mbox\{ otherwise. \}\\end \{array\}\\right. $" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 88 "If you wan t to have more complicated descriptions of the domain of the rules, us e Pcwise" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 75 "mcprint(la(f(x) =Pcwise(x<=0,x^2-3,\"0 \\\\leq x \\\\leq 6\",sin(3*x+2),tan(x))));" }} {PARA 6 "" 1 "" {TEXT -1 183 "$f \\left( x \\right) = \\left\\\\\{\\b egin\{array\}\{ll\} x^\{2\} - 3 & \\mbox\{ if \}x \\leq 0 \\\\ \\sin( 3\\,x + 2) & \\mbox\{ if \}0 \\leq x \\leq 6 \\\\ \\tan(x) & \\mbox \{ otherwise. \}\\end\{array\}\\right. $" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 61 "We can do Systems of equations or inequalities, using Sys eqn." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 51 "mcprint(la(Syseqn([ x^2+x>= y+3,e^x=ln(x^2+3*x)])));" }}{PARA 6 "" 1 "" {TEXT -1 100 "$\\l eft\\\\\{\\begin\{array\}\{rcl\} y + 3& \\leq &x^\{2\} + x \\\\e^\{x\} & = &\\ln(x^\{2\} + 3\\,x) \\end\{array\}\\right.$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 313 "You can bypass the maple parser and get greater \+ than or equal to inequalites by using geq, as below. Also you can add an argument to Syseqn: \"l\" left justifies the sides of the relati on. \"r\" will right justify. \"lr\" will left justify the left side a nd right justify the right side. \"cc\" centers each side, etc." }}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 51 "mcprint(la(Syseqn([x^2+x>= y +3,e^x=ln(x^2+3*x)])));" }}{PARA 6 "" 1 "" {TEXT -1 100 "$\\left\\\\\{ \\begin\{array\}\{rcl\} y + 3& \\leq &x^\{2\} + x \\\\e^\{x\}& = &\\ln (x^\{2\} + 3\\,x) \\end\{array\}\\right.$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 76 "Any latex relation can be put in the middle: for example neq gives $\\not=$" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 63 "mcp rint(la(Syseqn([neq(3*x^3-x^2+a,3),geq(e^x,ln(x^2+3*x))])));" }}{PARA 6 "" 1 "" {TEXT -1 110 "$\\left\\\\\{\\begin\{array\}\{rcl\} 3\\,x^\{3 \} - x^\{2\} + a& \\neq &3 \\\\e^\{x\}& \\geq &\\ln(x^\{2\} + 3\\,x) \+ \\end\{array\}\\right.$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 29 "We can do the binomial symbol" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 27 " mcprint(la(Binomial(n,r)));" }}{PARA 6 "" 1 "" {TEXT -1 50 "$\\left(\\ begin\{array\}\{c\} n \\\\ r \\end\{array\}\\right)$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 399 "We can do matrices Mat has round brackets, D et has vertical brackets, Tab has no brackets. Each will accept a list of lists, a Matrix or an array. \nThe column justification of each is modified by adding a second argument: \"l\" left justifies all colum ns, \"c\" is the default, \"r\" right justifies all columns, and other wise a string \"llrc..\" of the right length will justify each column \+ as you like." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 42 "T:=Matrix([ [5,4,x^2+s*sin(theta)],[a,b]]);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>% \"TG-%'RTABLEG6%\")'*esk-%'MATRIXG6#7$7%\"\"&\"\"%,&*$)%\"xG\"\"#\"\" \"F5*&%\"sGF5-%$sinG6#%&thetaGF5F57%%\"aG%\"bG\"\"!%'MatrixG" }}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 200 "mcprint(la(Mat([[2,3],[a,b] ]),\"\\\\ \\\\ \",Det(([[5,exp(x^2+3)],[a,b]]),\"l\"),\"\\\\ \\\\ \",T ab([[2,3],[a,b]])));\nmcprint(la(Mat(T),\"\\\\ \\\\ \",Det(matrix([[5, ln(x^2+3)],[a,b]]),\"r\"),\"\\\\ \\\\ \",Tab([[2,3],[a,b]])));" }} {PARA 6 "" 1 "" {TEXT -1 192 "$\\left(\\begin\{array\}\{cc\} 2 & 3 \\ \\a & b \\end\{array\}\\right)\\ \\ \\left|\\begin\{array\}\{ll\} 5 & \+ \\exp(x^\{2\} + 3) \\\\a & b \\end\{array\}\\right|\\ \\ \\left.\\begi n\{array\}\{cc\} 2 & 3 \\\\a & b \\end\{array\}\\right.$" }}{PARA 6 " " 1 "" {TEXT -1 222 "$\\left(\\begin\{array\}\{ccc\} 5 & 4 & x^\{2\} + s\\,\\sin(\\theta) \\\\a & b & 0 \\end\{array\}\\right)\\ \\ \\left| \\begin\{array\}\{rr\} 5 & \\ln(x^\{2\} + 3) \\\\a & b \\end\{array\} \\right|\\ \\ \\left.\\begin\{array\}\{cc\} 2 & 3 \\\\a & b \\end\{arr ay\}\\right.$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 89 "You can put text in a matrix with tex(\" \") (in the asciimath version ra it is text( \" \"))" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 143 "mcprint(la(Mat( [[tex(\"now is the time\"),3],[a,tex(\"for all good men to come to the aid of their queen.\")]])));mcprint(la(Tab([[2,3],[a,b]])));;" }} {PARA 6 "" 1 "" {TEXT -1 136 "$\\left(\\begin\{array\}\{cc\} \\mbox\{n ow is the time\} & 3 \\\\a & \\mbox\{for all good men to come to the a id of their queen.\} \\end\{array\}\\right)$" }}{PARA 6 "" 1 "" {TEXT -1 58 "$\\left.\\begin\{array\}\{cc\} 2 & 3 \\\\a & b \\end\{array\}\\ right.$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 26 "Here is a column vecto r. " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 109 "mcprint(la(ColVec( [tex(\"now is the time\"),3,a,tex(\"for all good men to come to the ai d of their queen.\")])));" }}{PARA 6 "" 1 "" {TEXT -1 135 "$\\left(\\b egin\{array\}\{c\} \\mbox\{now is the time\} \\\\3 \\\\a \\\\\\mbox\{f or all good men to come to the aid of their queen.\} \\end\{array\}\\r ight)$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 96 "Here is a randomly gene rated Matrix. You have to watch that \\\\ doesn't get split at an end line." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 56 "mcprint(la(Tab(Lin earAlgebra[RandomMatrix](6,7),\"r\")));;" }}{PARA 6 "" 1 "" {TEXT -1 271 "$\\left.\\begin\{array\}\{rrrrrrr\} 77 & 25 & -16 & -38 & 57 & -3 2 & 99 \\\\9 & 94 & -9 & -18 & 27 & -74 & 29 \\\\31 & 12 & -50 & 87 & \+ -93 & -4 & 44 \\\\-50 & -2 & -22 & 33 & -76 & 27 & 92 \\\\-80 & 50 & 4 5 & -98 & -72 & 8 & -31 \\\\43 & 10 & -81 & -77 & -2 & 69 & 67 \\end\{ array\}\\right.$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 20 "Here is a row vector" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 109 "mcprint(la(RowV ec([tex(\"now is the time\"),3,a,tex(\"for all good men to come to the aid of their queen.\")])));" }}{PARA 6 "" 1 "" {TEXT -1 92 "$(\\mbox \{now is the time\}, 3, a, \\mbox\{for all good men to come to the aid of their queen.\})$" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 33 "Use Pnt t o typeset ordered tuples" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 109 "mcprint(la(X=Pnt(3,4,2,a,x[6]),\"\\\\ \\\\ P = \",Pnt(63,-2,theta ,phi,omega)));mcprint(la(Pnt(Vector([3,4,5,6]))));" }}{PARA 6 "" 1 "" {TEXT -1 63 "$X = (3, 4, 2, a, x_\{6\})\\ \\ P = (63, -2, \\theta, \\p hi, \\omega)$" }}{PARA 6 "" 1 "" {TEXT -1 14 "$(3, 4, 5, 6)$" }}} {EXCHG {PARA 0 "" 0 "" {TEXT -1 35 "We can do Matrices with subscripts ." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 31 "mcprint(la(ColVec([3,4 ,5,6])));" }}{PARA 6 "" 1 "" {TEXT -1 57 "$\\left(\\begin\{array\}\{c \} 3 \\\\4 \\\\5 \\\\6 \\end\{array\}\\right)$" }}}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 15 "M:=matrix(4,5);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%\"MG-%&arrayG6%;\"\"\"\"\"%;F)\"\"&7\"" }}}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 20 "mcprint(la(Mat(M)));" }}{PARA 6 "" 1 "" {TEXT -1 245 "$\\left(\\begin\{array\}\{ccccc\} M_\{1,1\} & M_\{1,2\} & M_\{ 1,3\} & M_\{1,4\} & M_\{1,5\} \\\\M_\{2,1\} & M_\{2,2\} & M_\{2,3\} & \+ M_\{2,4\} & M_\{2,5\} \\\\M_\{3,1\} & M_\{3,2\} & M_\{3,3\} & M_\{3,4 \} & M_\{3,5\} \\\\M_\{4,1\} & M_\{4,2\} & M_\{4,3\} & M_\{4,4\} & M_ \{4,5\} \\end\{array\}\\right)$" }}}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 6 "_XETAL" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{SECT 0 {PARA 3 "" 0 "" {TEXT -1 11 "ra examples" }}{EXCHG {PARA 0 "" 0 "" {TEXT -1 142 "Here are the asciimath strings of commands like the ones above for latex. They look fine if used in the tagit line of a math class problem. " }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 59 "You can types et integrals and integral equations with ra. " }}}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 98 "mcprint(ra(Int(x^2,x=0..1)));mcprint(ra(Int(si n(theta),theta=0..Pi)=int(sin(theta),theta=0..Pi)));" }}{PARA 6 "" 1 " " {TEXT -1 24 "` int_(0)^(1)x^(2)\\ d x`" }}{PARA 6 "" 1 "" {TEXT -1 45 "` int_(0)^(Pi)text(sin)(\\theta)\\ d theta = 2`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 30 "We can do indefinite integrals" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 55 "mcprint(ra(Int(x^2,x),\"\\\\ \\\\ \+ \",Int(sin(theta),theta)));" }}{PARA 6 "" 1 "" {TEXT -1 52 "` int x^(2 )\\ d x\\ \\ int text(sin)(\\theta)\\ d theta`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 56 "We can do ordinary derivatives and partial derivativ es, " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 63 "mcprint(ra(Diff(sin (x^2*y),x)));mcprint(ra(Pdiff(sin(x*y),x)));" }}{PARA 6 "" 1 "" {TEXT -1 30 "`d/(d x)\\ text(sin)(x^(2)\\ y)`" }}{PARA 6 "" 1 "" {TEXT -1 30 "`del/(del x)\\ text(sin)(x\\ y)`" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 63 "We can do pro ducts and sums. Use text(\" \") to put text in ra." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 198 "mcprint(ra(text(\"The product of the fir st n integers is \"),Product(i,i=1..n),\" = \",n!,\" = \",GAMMA(n+1))) ;\nmcprint(ra(text(\"The sum of the first n squares is \"),Sum(i^2,i=1 ..n),\"=\",sum(i^2,i=1..n)));" }}{PARA 6 "" 1 "" {TEXT -1 86 "` text\{ The product of the first n integers is \} Pi_(1)^(n)i = n! = \\Gamma \+ ( n+1 ) `" }}{PARA 6 "" 1 "" {TEXT -1 128 "` text\{The sum of the fi rst n squares is \} sum_(1)^(n)i^(2)=(1)/(3)\\ (n + 1)^(3) + (-1)/(2) \\ (n + 1)^(2) + (1)/(6)\\ n + (1)/(6)`" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 151 "We can do in equalities, although if you want greater than inequalities, you have t o build them as shown, without running them through the maple parser. " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 60 "mcprint(ra(x<=y)),mcpri nt(ra(x>=y)),mcprint(ra(x,\" >= \",y));" }}{PARA 6 "" 1 "" {TEXT -1 8 "`x <= y`" }}{PARA 6 "" 1 "" {TEXT -1 8 "`y <= x`" }}{PARA 6 "" 1 "" {TEXT -1 8 "`x >= y`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 38 "We can do piecewise defined functions" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 50 "mcprint(ra(g(x)=piecewise(x<0,x-2,x<3,x^2,x<4)));;" }}{PARA 6 " " 1 "" {TEXT -1 97 "`g ( x ) = \{(x - 2, text\{ if \}x < 0),(x^(2 ), text\{ if \}x < 3),(x < 4, text\{ otherwise.\}):\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 88 "If you want to have more complicated desc riptions of the domain of the rules, use Pcwise" }}}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 69 "mcprint(ra(f(x)=Pcwise(x<=0,x^2-3,\"0 <= x <= \+ 6\",sin(3*x+2),tan(x))));" }}{PARA 6 "" 1 "" {TEXT -1 124 "`f ( x ) \+ = \{(x^(2) - 3, text\{ if \}x <= 0),(text(sin)(3\\ x + 2), text\{ \+ if \}0 <= x <= 6),(\\tan(x), text\{ otherwise.\}):\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 61 "We can do Systems of equations or inequal ities, using Syseqn." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 51 "mcp rint(ra(Syseqn([x^2+x>= y+3,e^x=ln(x^2+3*x)])));" }}{PARA 6 "" 1 "" {TEXT -1 58 "`\{(y + 3 <= x^(2) + x),(e^(x) = text(ln)(x^(2) + 3\\ x)) :\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 313 "You can bypass the maple parser and get greater than or equal to inequalites by using geq, as \+ below. Also you can add an argument to Syseqn: \"l\" left justifies the sides of the relation. \"r\" will right justify. \"lr\" will left justify the left side and right justify the right side. \"cc\" center s each side, etc." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 51 "mcprin t(ra(Syseqn([x^2+x>= y+3,e^x=ln(x^2+3*x)])));" }}{PARA 6 "" 1 "" {TEXT -1 58 "`\{(y + 3 <= x^(2) + x),(e^(x) = text(ln)(x^(2) + 3\\ x)) :\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 76 "Any latex relation can be put in the middle: for example neq gives $\\not=$" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 63 "mcprint(ra(Syseqn([neq(3*x^3-x^2+a,3),geq (e^x,ln(x^2+3*x))])));" }}{PARA 6 "" 1 "" {TEXT -1 96 "`\{(\{\\it neq \} ( 3 \{x\}^\{3\}-\{x\}^\{2\}+a,3 ) ),(\{\\it geq\} ( \{e\}^\{x\}, \\ln ( \{x\}^\{2\}+3 x ) ) ):\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 29 "We can do the binomial symbol" }}}{EXCHG {PARA 0 "> " 0 " " {MPLTEXT 1 0 27 "mcprint(ra(Binomial(n,r)));" }}{PARA 6 "" 1 "" {TEXT -1 11 "`((n),(r))`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 162 "We c an do matrices Mat has round brackets, Det has vertical brackets, Ta b has no brackets. Each will accept a list of lists, a Matrix, a matr ix or an array. " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 116 "mcprint(ra(A=Mat([[2,3],[a, b]]),\"\\\\ \\\\ \",B=Det(Matrix([[5,exp(x^2+3)],[a,b]])),\"\\\\ \\\\ \+ \",Tab(array([[2,3],[a,b]]))));" }}{PARA 6 "" 1 "" {TEXT -1 90 "`A = ( (2 , 3),(a , b))\\ \\ B = |(5 , text(exp)(x^(2) + 3)),(a , b)|\\ \\ \{ :(2 , 3),(a , b):\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 43 "You can p ut text in a matrix with text(\" \")" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 145 "mcprint(ra(Mat([[text(\"now is the time\"),3],[a,tex t(\"for all good men to come to the aid of their queen.\")]])));mcprin t(ra(Tab([[2,3],[a,b]])));;" }}{PARA 6 "" 1 "" {TEXT -1 97 "`(( text\{ now is the time\} , 3),(a , text\{for all good men to come to the aid of their queen.\}))`" }}{PARA 6 "" 1 "" {TEXT -1 21 "`\{:(2 , 3),(a , b):\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 26 "Here is a column vecto r. " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 111 "mcprint(ra(ColVec( [text(\"now is the time\"),3,a,text(\"for all good men to come to the \+ aid of their queen.\")])));" }}{PARA 6 "" 1 "" {TEXT -1 97 "`(( text\{ now is the time\}),(3),(a),( text\{for all good men to come to the aid of their queen.\}))`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 96 "Here is \+ a randomly generated Matrix. You have to watch that \\\\ doesn't get \+ split at an endline." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 52 "mcp rint(ra(Tab(LinearAlgebra[RandomMatrix](6,7))));;" }}{PARA 6 "" 1 "" {TEXT -1 229 "`\{:(90 , 41 , 52 , -59 , 22 , -95 , 24),(80 , 91 , -13 \+ , 12 , 14 , -20 , 65),(19 , 29 , 82 , -62 , 16 , -25 , 86),(88 , 70 , \+ 72 , -33 , 9 , 51 , 20),(-82 , -32 , 42 , -68 , 99 , 76 , -61),(-70 , \+ -1 , 18 , -67 , 60 , -44 , -48):\}`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 20 "Here is a row vector" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 111 "mcprint(ra(RowVec([text(\"now is the time\"),3,a,text(\"for all g ood men to come to the aid of their queen.\")])));" }}{PARA 6 "" 1 "" {TEXT -1 89 "`( text\{now is the time\},3,a, text\{for all good men to come to the aid of their queen.\})`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 74 "Use Pnt to typeset ordered tuples. It accepts sequences, lists or Vectors" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 107 "mcprint(ra( X=Pnt(3,4,2,a,x[6]),\"\\\\ \\\\ P = \",Pnt([63,-2,theta,phi,omega]),\" \\\\ \\\\ \",Pnt(Vector([3,4,5,6]))));" }}{PARA 6 "" 1 "" {TEXT -1 68 "`X = (3,4,2,a,x_(6))\\ \\ P = (63,-2,\\theta,\\phi,\\omega)\\ \\ (3,4 ,5,6)`" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 35 "We can do Matrices with subscripts." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 33 "mcprint(ra( A=ColVec([3,4,5,6])));" }}{PARA 6 "" 1 "" {TEXT -1 23 "`A = ((3),(4),( 5),(6))`" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "M:=matrix(4,5): " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 22 "mcprint(ra(M=Mat(M))); " }}{PARA 6 "" 1 "" {TEXT -1 207 "`M = ((M_(1,1) , M_(1,2) , M_(1,3) , M_(1,4) , M_(1,5)),(M_(2,1) , M_(2,2) , M_(2,3) , M_(2,4) , M_(2,5)), (M_(3,1) , M_(3,2) , M_(3,3) , M_(3,4) , M_(3,5)),(M_(4,1) , M_(4,2) , M_(4,3) , M_(4,4) , M_(4,5)))`" }}}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{SECT 0 {PARA 3 "" 0 "" {TEXT -1 50 "Using ra in the tagit line of a mathclass problem" }}{EXCHG {PARA 0 "" 0 "" {TEXT -1 85 "You can use ra in the tagit line of a problem for mathcla ss. Here are some examples." }}}{EXCHG }{EXCHG {PARA 0 "" 0 "" {TEXT -1 57 "If you want a single problem, you can use tagit by itself" }}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 120 "tagit(\"Solve the system of equations for x:\",brak(),[ra(Syseqn(3*x-y=7,-4*x+y=9),text(\" Answe r: \"),x,\" = \")],_AC(-16));" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }} {PARA 6 "" 1 "" {TEXT -1 12 "QM_[.05;-16]" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 6 "AH_[0]" }}{PARA 6 "" 1 "" {TEXT -1 36 "Solve the system of equations for x:" }}{PARA 6 "" 1 "" {TEXT -1 5 "_brk_" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 56 "`\{(3\\ x - y = 7),(-4\\ x + y = 9):\} text\{ Answer: \}x = `" }} {PARA 6 "" 1 "" {TEXT -1 7 "AC_[15]" }}{PARA 6 "" 1 "" {TEXT -1 0 "" } }{PARA 6 "" 1 "" {TEXT -1 5 "SKIP_" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 59 "If you want versions of a problem, use a problem generator." }} }{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 370 "prob:=proc()\n local a,b; \n getparams([args],[[a,[2,3,4]],[b,perm,[1,2,3]]]);\n tagit(\"Compute the following:\",brak(),\n [\"a) \",ra((Diff(x^a-b[1]*x + b[2],x))) ,\" \",_AF(diff(x^a-b[1]*x+b[2],x))],brak(),\n [\"b) \",ra(Int(x^a- b[1]*x + b[2],x)),\" \",_AI(int(x^a-b[1]*x+b[2],x))],brak(),\n [\"c) \",ra(Int(x^a-b[1]*x + b[2],x=1..5)),\" \",_AF(int(x^a-b[1]*x+b[2], x=1..5))]) end:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "prob(1); " }}{PARA 6 "" 1 "" {TEXT -1 35 "current inputs are (1,2,[1, 2, 3])" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 40 "QM_[.05 ;2*x-1;1/3*x^3-1/2*x^2+2*x;112/3]" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }} {PARA 6 "" 1 "" {TEXT -1 6 "AH_[0]" }}{PARA 6 "" 1 "" {TEXT -1 22 "Com pute the following:" }}{PARA 6 "" 1 "" {TEXT -1 5 "_brk_" }}{PARA 6 " " 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 32 "a) `d/(d x)\\ (x^ (2) - x + 2)` " }}{PARA 6 "" 1 "" {TEXT -1 16 "AF_[15;x;6;.1;1]" }} {PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 6 "AH_[0]" }} {PARA 6 "" 1 "" {TEXT -1 5 "_brk_" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }} {PARA 6 "" 1 "" {TEXT -1 31 "b) ` int x^(2) - x + 2\\ d x` " }} {PARA 6 "" 1 "" {TEXT -1 16 "AI_[15;x;6;.1;1]" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 6 "AH_[0]" }}{PARA 6 "" 1 "" {TEXT -1 5 "_brk_" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 38 "c) ` int_(1)^(5)x^(2) - x + 2\\ d x` " }}{PARA 6 "" 1 " " {TEXT -1 16 "AF_[15;x;6;.1;1]" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }} {PARA 6 "" 1 "" {TEXT -1 5 "SKIP_" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}}{SECT 0 {PARA 4 "" 0 "" {TEXT -1 47 "converting \+ mathclass problems to latex problems" }}{EXCHG {PARA 0 "" 0 "" {TEXT -1 336 "You can conver a mathclass problem to a hard copy latex versio n. Basically it involves changing tagit to ltagit, ra to la, and poss ibly making some other minor changes.\nInstead of typing underscoreLAT EX above and underscoreXETAL below the problem, you must put LATEX_:= yes and LATEX_:=no in the input above and below the ltagit line. " }} {PARA 0 "" 0 "" {TEXT -1 80 "The output is designed to be extracted fr om the latex export of this file using " }{TEXT 260 7 "latexit" } {TEXT -1 5 " or " }{TEXT 260 7 "makexam" }{TEXT -1 73 ". Also, we r eplace the AC format with AX and supply an answer box (use " }{TEXT 260 6 "ansbox" }{TEXT -1 22 " from latextools) " }}}{EXCHG } {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 204 "LATEX_:=yes:\nltagit([\"Sol ve the system of equations for x:\"],brak(),[la(Syseqn([3*x-y=7,-4*x+y =9]),tex(\" Answer: \"),x,\" = \"),ansbox(Height=.5,Width=.9,Fill=\" \",Placement=\"c\")],_AX(la(x=-16)));\nLATEX_:=no:" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 6 "_LATEX" }}{PARA 6 "" 1 "" {TEXT -1 8 "\\item \\ " }}{PARA 6 "" 1 "" {TEXT -1 36 "Solve the system of equations for x:" }}{PARA 6 "" 1 "" {TEXT -1 4 "\\par" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 142 "$\\left\\\{\\begin\{array\}\{rcl\} 3\\,x - y& = &7 \+ \\\\-4\\,x + y& = &9 \\end\{array\}\\right.\\mbox\{ Answer: \}x = $\\ \\fbox\{\\parbox[c][.5in][c]\{.9in\}\{\\hfill\}\}" }}{PARA 6 "" 1 "" {TEXT -1 13 "\\vspace\{12pt\}" }}{PARA 6 "" 1 "" {TEXT -1 6 "_XETAL" } }{PARA 6 "" 1 "" {TEXT -1 4 "_KEY" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }} {PARA 6 "" 1 "" {TEXT -1 21 "\\begin\{tabular\}[t]\{l\}" }}{PARA 6 "" 1 "" {TEXT -1 2 "\\\\" }}{PARA 6 "" 1 "" {TEXT -1 33 "$\\diamond$\\hsp ace\{2mm\}$x = -16$\\\\" }}{PARA 6 "" 1 "" {TEXT -1 13 "\\end\{tabular \}" }}{PARA 6 "" 1 "" {TEXT -1 4 "_YEK" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 297 "If you want \+ versions of a problem, use a problem generator. Note the changes fro m the mathclass generator. We insert a global line, change tagit to l tagit, and ra to la. We also changed all\nthe answer formats (AF and AI) to AX formats and added an answer box for them to put their answe rs in." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 597 "prob:=proc()\n g lobal LATEX_:\n local a,b,f,x,abox;\n getparams([args],[[a,[2,3,4]],[b ,perm,[2,3,4]]]);\n abox:=ansbox(Height=.7,Width=1.5,Fill=\"\",Placeme nt=\"c\"):\n LATEX_:=yes:\n ltagit(\"Compute the following:\",brak(), \n [\"a) \",la(f(x)=x^a-b[1]*x + b[2],\"\\\\ \\\\ \",big,Diff(f(x), x),\" = \"),abox],\n_AX(la(Diff(f(x),x)=diff(x^a-b[1]*x+b[2],x))),brak (),\n [\"b) \",la(big,Int(x^a-b[1]*x + b[2],x),\" =\"),abox],_AX(la( big,Int(f(x),x)=int(x^a-b[1]*x+b[2],x))),brak(),\n [\"c) \",la(big,I nt(x^a-b[1]*x + b[2],x=1..5),\" =\"),abox],_AX(la(big,Int(f(x),x=1..5) =int(x^a-b[1]*x+b[2],x=1..5)))); \nLATEX_:=no:\nNULL:\nend:" }}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "prob(1);" }}{PARA 6 "" 1 "" {TEXT -1 35 "current inputs are (1,2,[3, 2, 4])" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 6 "_LATEX" }}{PARA 6 "" 1 "" {TEXT -1 8 "\\item \\ " }}{PARA 6 "" 1 "" {TEXT -1 22 "Compute the fol lowing:" }}{PARA 6 "" 1 "" {TEXT -1 4 "\\par" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 142 "a) $f \\left( x \\right) = x ^\{2\} - 3\\,x + 2\\ \\ \\displaystyle\\frac\{d\}\{d x\}\\ f \\left( \+ x \\right) = $\\ \\fbox\{\\parbox[c][.7in][c]\{1.5in\}\{\\hfill\}\}" }}{PARA 6 "" 1 "" {TEXT -1 4 "\\par" }}{PARA 6 "" 1 "" {TEXT -1 0 "" } }{PARA 6 "" 1 "" {TEXT -1 91 "b) $\\displaystyle\\int x^\{2\} - 3\\,x + 2\\, d x =$\\ \\fbox\{\\parbox[c][.7in][c]\{1.5in\}\{\\hfill\}\}" } }{PARA 6 "" 1 "" {TEXT -1 4 "\\par" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }} {PARA 6 "" 1 "" {TEXT -1 97 "c) $\\displaystyle\\int_\{1\}^\{5\}x^\{2 \} - 3\\,x + 2\\,d x =$\\ \\fbox\{\\parbox[c][.7in][c]\{1.5in\}\{\\hfi ll\}\}" }}{PARA 6 "" 1 "" {TEXT -1 13 "\\vspace\{12pt\}" }}{PARA 6 "" 1 "" {TEXT -1 6 "_XETAL" }}{PARA 6 "" 1 "" {TEXT -1 4 "_KEY" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 21 "\\begin\{tabula r\}[t]\{l\}" }}{PARA 6 "" 1 "" {TEXT -1 2 "\\\\" }}{PARA 6 "" 1 "" {TEXT -1 71 "$\\diamond$\\hspace\{2mm\}$\\frac\{d\}\{d x\}\\ f \\left( x \\right) = 2\\,x - 3$\\\\" }}{PARA 6 "" 1 "" {TEXT -1 119 "$\\diam ond$\\hspace\{2mm\}$\\displaystyle\\int f \\left( x \\right) \\, d x = \\frac\{1\}\{3\}\\,x^\{3\} + \\frac\{-3\}\{2\}\\,x^\{2\} + 2\\,x$\\\\ " }}{PARA 6 "" 1 "" {TEXT -1 90 "$\\diamond$\\hspace\{2mm\}$\\displays tyle\\int_\{1\}^\{5\}f \\left( x \\right) \\,d x = \\frac\{40\}\{3\}$ \\\\" }}{PARA 6 "" 1 "" {TEXT -1 13 "\\end\{tabular\}" }}{PARA 6 "" 1 "" {TEXT -1 4 "_YEK" }}}{EXCHG }{EXCHG }{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "ansbox(Help=yes);" }}{PARA 6 "" 1 "" {TEXT -1 63 "ansbox() prints an answerbox for an exam or qu iz written using" }}{PARA 6 "" 1 "" {TEXT -1 13 "latextools. " }} {PARA 6 "" 1 "" {TEXT -1 8 "Options:" }}{PARA 6 "" 1 "" {TEXT -1 52 "H eight=.4 the default height (in inches) of the box" }}{PARA 6 "" 1 " " {TEXT -1 26 "Width=1 the default width " }}{PARA 6 "" 1 "" {TEXT -1 84 "Placement=\"t\" places the answer box on the line of text. t=top , c=center, b=bottom" }}{PARA 6 "" 1 "" {TEXT -1 67 "Fill=\"\\hfill\" \+ positions the box in the remaining hspace on the line" }}{PARA 6 "" 1 "" {TEXT -1 69 "TextPlace=\"c\" places the text in the box t = top, c =center, b=bottom" }}{PARA 6 "" 1 "" {TEXT -1 36 "Text=\"\" the text \+ going into the box" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "#prin t(ansbox);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{SECT 0 {PARA 3 "" 0 "" {TEXT -1 24 "creating a joint problem" }}{EXCHG {PARA 0 "" 0 "" {TEXT -1 188 "We can make mathclass and latex problem jointl y. Then one can post the homework (or exam) and also make a hardcopy \+ version done in latex using makexam. I illustrate with a simple exampl e." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 402 "prob:=proc()\n glob al LATEX_:\n local a,b;\n getparams([args],[[a,[2,3,4]],[b,[5,7,9]]] );\n tagit([\"Compute the sum of the arithmetic series \",ra(Sum(a+b* i,i=3..25),\" = \")],_AC(sum(a+b*i,i=3..25))):\n LATEX_:=yes:\n ltagi t([\"Compute the sum of the arithmetic series \",la(big,Sum(a+b*i,i=3. .25),\" = \"),ansbox(Height=.7,Width=1,Fill=\"\",Placement=\"c\")],_AX (sum(a+b*i,i=3..25))):\n LATEX_:=no:\n NULL: \n end:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "prob(1);" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}{PARA 6 "" 1 "" {TEXT -1 27 "current inputs are ( 1,3,5)" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 13 "QM_[.05;1679]" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 6 "AH_[0]" }}{PARA 6 "" 1 "" {TEXT -1 67 "Compute the sum of \+ the arithmetic series ` sum_(3)^(25)3 + 5\\ i = `" }}{PARA 6 "" 1 "" {TEXT -1 7 "AC_[15]" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 " " {TEXT -1 5 "SKIP_" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 " " {TEXT -1 6 "_LATEX" }}{PARA 6 "" 1 "" {TEXT -1 8 "\\item \\ " }} {PARA 6 "" 1 "" {TEXT -1 125 "Compute the sum of the arithmetic series $\\displaystyle\\sum_\{i = 3\}^\{25\}3 + 5\\,i = $\\ \\fbox\{\\parbox [c][.7in][c]\{1in\}\{\\hfill\}\}" }}{PARA 6 "" 1 "" {TEXT -1 13 "\\vsp ace\{12pt\}" }}{PARA 6 "" 1 "" {TEXT -1 6 "_XETAL" }}{PARA 6 "" 1 "" {TEXT -1 4 "_KEY" }}{PARA 6 "" 1 "" {TEXT -1 0 "" }}{PARA 6 "" 1 "" {TEXT -1 21 "\\begin\{tabular\}[t]\{l\}" }}{PARA 6 "" 1 "" {TEXT -1 2 "\\\\" }}{PARA 6 "" 1 "" {TEXT -1 32 "$\\diamond$\\hspace\{2mm\} $1679 $ \\\\" }}{PARA 6 "" 1 "" {TEXT -1 13 "\\end\{tabular\}" }}{PARA 6 "" 1 "" {TEXT -1 4 "_YEK" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" } }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}}{EXCHG }{EXCHG {PARA 0 "" 0 "" {TEXT -1 106 "The following command will create a latex hard copy of this worksheet. First export the worksheet to latex" }}{PARA 7 "" 0 "" {TEXT -1 246 "latexit(\"laratest\",\"c://carl/whs/MCtools1_3 0_09\",\nExtraPreamble=\ncat(\"\\\\renewenvironment\{Title\}\{\\\\begi n\{center\}\\\\rmfamily\\\\Huge\\\\bf\\\\upshape\n\\\\ignorespaces\}\{ \\\\end\{center\}\}\\n\\\\raggedright\\\\textheight=9.3in\n\\\\texthei ght=9.3in\\n\\\\topmargin=-.5in\"));" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 5 "_OMIT" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 246 "latexit(\"l aratest\",\"c://carl/whs/MCtools1_30_09\",\nExtraPreamble=\ncat(\"\\\\ renewenvironment\{Title\}\{\\\\begin\{center\}\\\\rmfamily\\\\Huge\\\\ bf\\\\upshape\n\\\\ignorespaces\}\{\\\\end\{center\}\}\\n\\\\raggedrig ht\\\\textheight=9.3in\n\\\\textheight=9.3in\\n\\\\topmargin=-.5in\")) ;" }}{PARA 6 "" 1 "" {TEXT -1 22 "index words duplicated" }}{PARA 6 " " 1 "" {TEXT -1 23 "laratestwhs.tex created" }}{PARA 6 "" 1 "" {TEXT -1 24 "laratestwhs.dvi created." }}{PARA 6 "" 1 "" {TEXT -1 73 "fixed \+ eps files (removed their borders and recolored if Color=yes is set)" } }{PARA 6 "" 1 "" {TEXT -1 35 "laratestwhs.ps created sucessfully." }} {PARA 6 "" 1 "" {TEXT -1 8 "finished" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 148 "Now we will extract some of the latex problems in this file an d make an exam. Since there are only three latex problems in it we wi ll get them all." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 49 "makexam (Help=yes); #will get you the help sheet." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG }{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 400 "makexam(\"laratest\",\"c:/carl/whs/Mctools1_30_09\",\nVersion=[[1 ],[1,2,3],[1,2,3]],\nCover=cat(\"\\\\textbf\{\\\\Large Math Test\}\\\\ hfill Jan 31, 2009 \\\\hfill \\\\textbf\{Name:\}\\\\rule[-.01in]\{1in \}\{.01in\}\\\\\\\\\\\\bigskip\"),\nSpacing=[1,1,1],\nExtraPreamble=ca t(\"\\\\renewenvironment\{Title\}\{\\\\begin\{center\}\\\\bold\\\\rmfa mily\\\\Huge\n\\\\upshape\\\\ignorespaces\}\{\\\\end\{center\}\}\n\\\\ raggedright\\n\\\\textheight=9.3in\\\\topmargin=-.5in\"));\n" }}{PARA 6 "" 1 "" {TEXT -1 48 " The laratest eps files are already recolorized ." }}{PARA 6 "" 1 "" {TEXT -1 37 "laratestv1_la.tex created: 3 problem s" }}{PARA 6 "" 1 "" {TEXT -1 22 "index words duplicated" }}{PARA 6 " " 1 "" {TEXT -1 28 "laratestv1_lawhs.tex created" }}{PARA 6 "" 1 "" {TEXT -1 29 "laratestv1_lawhs.dvi created." }}{PARA 6 "" 1 "" {TEXT -1 73 "fixed eps files (removed their borders and recolored if Color=y es is set)" }}{PARA 6 "" 1 "" {TEXT -1 40 "laratestv1_lawhs.ps created sucessfully." }}{PARA 6 "" 1 "" {TEXT -1 8 "finished" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG }{EXCHG }{EXCHG {PARA 0 "" 0 "" {TEXT -1 5 "_TIMO" }}}}{MARK "10 10 0 0" 0 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }