{VERSION 3 0 "IBM INTEL NT" "3.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 }{CSTYLE "Hyperlink" -1 17 "" 0 1 0 128 128 1 0 0 1 0 0 0 0 0 0 } {CSTYLE "2D Comment" 2 18 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 }{CSTYLE " " 0 21 "" 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 }{CSTYLE "Help Heading" -1 26 "" 1 14 0 0 0 0 0 1 0 0 0 0 0 0 0 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 }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 0 0 0 6 6 0 0 0 0 0 0 -1 0 }} {SECT 0 {SECT 0 {PARA 0 "" 0 "" {TEXT 26 7 "Advice:" }{TEXT -1 30 " Pl otting a sequence of points" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 481 "Suppose you want to produce a plot by generati ng points one at a time, and plotting them. In a typical programming \+ language such as C, you would probably build up the plot one point at \+ a time, plotting each point as it is generated. This is not the way M aple works, however. In Maple a plot is a single object, whose image on the screen or in a file is \"printed\" as the result of one comman d (although this may use the results of several different plot command s, combined with " }{MPLTEXT 0 21 7 "display" }{TEXT -1 4 "). " }} {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 345 "To plot \+ a sequence of points, you build up a list or array of points and then \+ plot it. In the case of a large list, an array can be more efficient. To take maximum advantage of the speed of hardware floating-point ar ithmetic, you can use an hfarray. However, this can not be plotted di rectly, but should be converted to a list of lists using " }{MPLTEXT 0 21 22 "convert(..., listlist)" }{TEXT -1 28 ". It is also faster to use " }{MPLTEXT 0 21 9 "pointplot" }{TEXT -1 8 " in the " }{MPLTEXT 0 21 5 "plots" }{TEXT -1 22 " package rather than " }{MPLTEXT 0 21 4 "plot" }{TEXT -1 10 " with the " }{MPLTEXT 0 21 11 "style=POINT" } {TEXT -1 44 " option. For a three-dimensional plot, use " }{MPLTEXT 0 21 11 "pointplot3d" }{TEXT -1 8 " in the " }{MPLTEXT 0 21 5 "plots" }{TEXT -1 9 " package." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 15 "Use the option " }{MPLTEXT 0 21 12 "symbol=POINT" } {TEXT -1 87 " when plotting points to make each point be a single dot. The other possibilities are " }{MPLTEXT 0 21 3 "BOX" }{TEXT -1 3 ", \+ " }{MPLTEXT 0 21 6 "CIRCLE" }{TEXT -1 2 ", " }{MPLTEXT 0 21 5 "CROSS " }{TEXT -1 5 " and " }{MPLTEXT 0 21 7 "DIAMOND" }{TEXT -1 24 " (which is the default)." }}}{SECT 0 {PARA 3 "" 0 "" {TEXT 26 8 "Example:" }} {PARA 0 "" 0 "" {TEXT -1 67 "Here we generate a plot of 4000 successiv e points of the H\351non map " }{XPPEDIT 18 0 "[x,y] -> [1+y-1.4*x^2, \+ 0.3*x]" "6#R6#7$%\"xG%\"yG7\"6$%)operatorG%&arrowG6\"7$,(\"\"\"\"\"\"F 'F0*&$\"#9!\"\"F0*$F&\"\"#F0!\"\"*&$\"\"$!\"\"F0F&F0F,F,F," }{TEXT -1 174 ". To take maximum advantage of the speed of hardware floating-po int arithmetic, we write a procedure to compute the points and put the m in an hfarray, and evaluate it using " }{MPLTEXT 0 21 6 "evalhf" } {TEXT -1 1 "." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 267 "makearray: = proc() \nlocal L, i, x, y, xp; \nL := hfarray(1 .. 4000,1 .. 2); \nx := 0.6; y := 0.2; \nfor i to 400 do\n xp := 1+y-1.4*x^2;\n y := .3* x;\n x := xp;\nod;\nfor i to 4000 do \n xp := 1+y-1.4*x^2;\n y := .3*x;\n x := xp; \n L[i,1]:= x; L[i,2]:= y;\nod; \nL \nend:" }}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "L:= evalhf(makearray()):" }} }{PARA 0 "" 0 "" {TEXT -1 55 "Now we convert the hfarray to a list of \+ lists, and use " }{MPLTEXT 0 21 9 "pointplot" }{TEXT -1 12 " to plot i t." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 25 "Ll:= convert(L,listlis t):" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 34 "plots[pointplot](Ll, symbol=POINT);" }{TEXT -1 0 "" }}}}{SECT 0 {PARA 3 "" 0 "" {TEXT 26 9 "See also:" }}{PARA 0 "" 0 "" {HYPERLNK 17 "evalhf" 2 "evalhf" "" } {TEXT -1 2 ", " }{HYPERLNK 17 "hfarray" 2 "hfarray" "" }{TEXT -1 2 ", \+ " }{HYPERLNK 17 "convert(listlist)" 2 "convert,listlist" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "plot" 2 "plot" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "plot(options)" 2 "plot,options" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "pointplot" 2 "pointplot" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "pointplot 3d" 2 "pointplot3d" "" }}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 24 "Maple A dvisor Database, " }{TEXT -1 15 " R. Israel 1998" }}}}{MARK "1 1 2" 146 }{VIEWOPTS 1 1 0 1 1 1803 }