{VERSION 5 0 "APPLE_PPC_MAC" "5.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 Comment" 2 18 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 } {CSTYLE "" -1 256 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 257 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 258 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 259 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 260 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 } {CSTYLE "" -1 261 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 262 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 263 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 264 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 265 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 } {CSTYLE "" -1 266 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 267 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 268 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 269 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 270 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 } {CSTYLE "" -1 271 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 272 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 273 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 274 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 275 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 } {CSTYLE "" -1 276 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 277 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 278 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 279 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 280 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 } {CSTYLE "" -1 281 "" 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 282 "" 1 8 0 0 0 0 0 0 0 0 0 0 0 0 0 1 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Heading 1" 0 3 1 {CSTYLE "" -1 -1 "" 1 18 0 0 0 0 0 1 0 0 0 0 0 0 0 1 }1 0 0 0 8 4 0 0 0 0 0 0 -1 0 }{PSTYLE "Head ing 2" 3 4 1 {CSTYLE "" -1 -1 "" 1 14 0 0 0 0 0 0 0 0 0 0 0 0 0 1 }0 0 0 -1 8 2 0 0 0 0 0 0 -1 0 }} {SECT 0 {EXCHG {PARA 4 "" 0 "" {TEXT -1 19 "An Introduction to " } {TEXT 256 5 "Maple" }{TEXT -1 0 "" }}{PARA 4 "" 0 "" {TEXT -1 19 "Grap hing Functions " }{TEXT 257 1 "y" }{TEXT -1 3 " = " }{TEXT 258 5 "f(x) " }{TEXT 282 44 "by Bob Bradshaw, Ohlone College, Fremont, CA" }} {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}} {EXCHG {PARA 0 "" 0 "" {TEXT -1 25 "To graph a function like " } {XPPEDIT 18 0 "y = x^2;" "6#/%\"yG*$%\"xG\"\"#" }{TEXT -1 11 ", use pl ot(" }{TEXT 259 8 "function" }{TEXT -1 4 ", x=" }{TEXT 260 11 "start.. end)" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 19 "plot(x^2,x=-4..4);\n" }}} {EXCHG {PARA 0 "" 0 "" {TEXT -1 26 "\nYou can also specify the " } {TEXT 261 1 "y" }{TEXT -1 8 " values." }}{PARA 0 "" 0 "" {TEXT -1 0 " " }{MPLTEXT 1 0 28 "plot(x^2,x=-4..4,y=-10..25);" }}}{EXCHG {PARA 0 " " 0 "" {TEXT -1 96 "\nInstead of enterring the functions within the pl ot command, you can define the functions first." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 42 "y1:=x^3;\ny2:=4-x^2;\nplot([y1,y2],x=-4..4);" }}} {EXCHG {PARA 0 "" 0 "" {TEXT -1 99 "By clicking on the graph, you can \+ use the menus and the icons to alter the appearance of the graph." }}} {EXCHG {PARA 0 "" 0 "" {TEXT -1 104 "\nThe appearance of the graph can also be changed within the plot statement by using a series of option s." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 41 "plot([y1,y2],x=-4..4,color=[g reen,blue]);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 57 "plot([y1,y2 ],x=-4..4,color=[green,blue],thickness=[3,6]);" }}}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 73 "plot([y1,y2],x=-4..4,color=[green,blue],style= point,\nsymbol=[box,cross]);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 70 "plot([y1,y2],x=-4..4,color=[green,blue],linestyle=[2,3],\nthickn ess=2);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 70 "plot(y1,x=-4..4, labels=[Time, Temperature],labelfont=[TIMES,BOLD,18]);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 113 "plot(y1,x=-4..4,labels=[Time, Temp erature],labelfont=[TIMES,BOLD,14],title=\"My Graph\",titlefont=[TIMES ,BOLD,18]);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 85 "\nThe plotting rou tines are not perfect. This is supposed to be the graph of a circle." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 50 "y3:=sqrt(9-x^2);\ny4:=-y3;\nplot( [y3,y4],x=-10..10);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 18 "\nUsing th e option " }{TEXT 262 19 "scaling=constrained" }{TEXT -1 59 " makes th e graph look like a circle rather than an ellipse." }}{PARA 0 "> " 0 " " {MPLTEXT 1 0 44 "plot([y3,y4],x=-10..10,scaling=constrained);" }}} {EXCHG {PARA 0 "" 0 "" {TEXT -1 78 "\nIncreasing the number of points \+ attempts to join the ends of the semicircles." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 59 "plot([y3,y4],x=-10..10,numpoints=5000,scaling=constra ined);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 58 "\nMaple can create and \+ graph piecewise continuous functions" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 48 "y6:= piecewise(x<2,x,x>=2 and x<5,9, x>=5,10-x);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 30 "plot(y6,x=-5..10,thickness=2);" }}} {EXCHG {PARA 0 "" 0 "" {TEXT -1 88 "\nIn order to produce a graph that shows the discontinuity, use the option \"discont=true\"" }}{PARA 0 " " 0 "" {TEXT -1 1 " " }{MPLTEXT 1 0 43 "plot(y6,x=-5..10,discont=true, thickness=2);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT 278 5 "Maple" }{TEXT -1 70 " can also create a graph of serie s of points. First, create a list of " }{TEXT 279 1 "x" }{TEXT -1 5 " \+ and " }{TEXT 280 1 "y" }{TEXT -1 7 " values" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 21 "xvalues:=[1,2,3,4,5];" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 21 "yvalues:=[3,2,6,7,1];" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 " " }}{PARA 0 "" 0 "" {TEXT -1 47 "Next, turn the two lists into a list \+ of points." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 41 "points:=[[xvalues[n], yvalues[n]]$n=1..5];" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 49 "\nFinally , graph the points with the plot command." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 63 "plot(points,x=0..8,style=point,symbol=circle,view=[0. .8,0..8]);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 62 "\nYou can combine t he graph of the points with any other graph." }{MPLTEXT 1 0 95 "plot([ points,3+sin(x)],x=0..8,style=[point,line],symbol=circle,\ncolor=[gree n,red],thickness=2);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 62 "\nThere a re additional plotting commands that are available in " }{TEXT 281 5 " Maple" }{TEXT -1 99 ". To access many of these, you must first load th e plotting subroutine using the following command." }}{PARA 0 "> " 0 " " {MPLTEXT 1 0 12 "with(plots);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 444 "\nOne of the commands in the plotting package is \"display.\" Th is lets you create and store a series of graphs and then display them \+ with a later statement. To do this, simply give the standard plot stat ements names like p1, and p2. Be sure to end the statements with colon s rather than semicolons. Using a colon will hide the output. If you w ant to see what happens, try putting a semicolon at the end of the nex t statement instead of a colon.)" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 84 "p1:=plot(x^2,x=-2..2,color=green):\np2:=plot(3*cos(x),x=-4..4,color=r ed,thickness=3):" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 58 "\nFinally, cr eate the graph by using the \"display\" command." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "display(p1,p2);" }}}{EXCHG {PARA 4 "" 0 "" {TEXT -1 12 "\nYou Try it." }}{PARA 0 "" 0 "" {TEXT -1 44 "1. Graph the followi ng equation. Adjust the " }{TEXT 263 1 "x" }{TEXT -1 5 " and " }{TEXT 264 1 "y" }{TEXT -1 49 " values to create an appropriate viewing windo w.\n" }{XPPEDIT 18 0 "y = x^4-58*x^3+6*x^2-7*x+1;" "6#/%\"yG,,*$%\"xG \"\"%\"\"\"*&\"#eF)*$F'\"\"$F)!\"\"*&\"\"'F)*$F'\"\"#F)F)*&\"\"(F)F'F) F.F)F)" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 98 "2. Change the above graph so that the axes are in a large font. Also create a title for the graph." }}{PARA 0 "" 0 "" {TEXT -1 100 "\n3. Create a single graph containing the graphs of the following functions on the interval \n-2*Pi < " }{TEXT 277 1 "x" }{TEXT -1 58 " < 2*Pi using three different colors and line thicknesses." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }{TEXT 265 1 "y" }{TEXT -1 8 " = sin(2" }{TEXT 266 1 "x" }{TEXT -1 3 "), " }{TEXT 267 1 "y" }{TEXT -1 9 " = 2sin(2" } {TEXT 268 1 "x" }{TEXT -1 7 "), and " }{TEXT 269 1 "y" }{TEXT -1 9 " = 3sin(2" }{TEXT 270 1 "x" }{TEXT -1 2 ")." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 161 "4. Create a single graph containi ng the graphs of the following functions using three different symbols . The graphs should consist of points, not a smooth curve." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }{TEXT 271 1 "y" }{TEXT -1 6 " = ln(" }{TEXT 272 1 "x" }{TEXT -1 3 "), " }{TEXT 273 1 "y" }{TEXT -1 7 " = ln(2" } {TEXT 274 1 "x" }{TEXT -1 7 "), and " }{TEXT 275 1 "y" }{TEXT -1 7 " = ln(3" }{TEXT 276 1 "x" }{TEXT -1 2 ")." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 82 "5. Graph the following discontinuous function. Be sure the graph is discontinuous." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }{XPPEDIT 18 0 "y := PIECEWISE([-5, x < 2],[x^2, 2 <= x] );" "6#>%\"yG-%*PIECEWISEG6$7$,$\"\"&!\"\"2%\"xG\"\"#7$*$F-F.1F.F-" }} {PARA 0 "" 0 "" {TEXT -1 0 "" }}}}{MARK "25 7 0" 35 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }