{VERSION 4 0 "IBM INTEL NT" "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 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 1 }{CSTYLE "Hyperlink" -1 17 "" 0 1 0 128 128 1 0 0 1 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 "2D Output" 2 20 "" 0 1 0 0 255 1 0 0 0 0 0 0 0 0 0 1 } {CSTYLE "" 0 21 "" 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 1 }{CSTYLE "Help Head ing" -1 26 "" 1 14 0 0 0 0 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 "Error" -1 8 1 {CSTYLE "" -1 -1 "Courier " 1 10 255 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 "Bullet Item " -1 15 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 3 3 1 0 1 0 2 2 15 2 }} {SECT 0 {SECT 0 {PARA 0 "" 0 "" {TEXT 26 8 "Bug fix:" }{TEXT -1 19 " \+ Contourplot bugs\n" }}{PARA 0 "" 0 "" {TEXT -1 33 "There are several b ugs affecting " }{MPLTEXT 0 21 11 "contourplot" }{TEXT -1 8 " in the \+ " }{MPLTEXT 0 21 5 "plots" }{TEXT -1 73 " package. The following two \+ bugs can be remedied by using the procedure " }{MPLTEXT 0 21 16 "patch contourplot" }{TEXT -1 52 " from the Maple Advisor Database to install a patch." }}{PARA 15 "" 0 "" {MPLTEXT 0 21 11 "contourplot" }{TEXT -1 34 " does not work with an expression " }{MPLTEXT 0 21 1 "f" } {TEXT -1 68 " involving a fraction with non-constant denominator (i.e. such that " }{MPLTEXT 0 21 8 "denom(f)" }{TEXT -1 73 " returns a non- constant value): it just plots contours for the numerator " }{MPLTEXT 0 21 8 "numer(f)" }{TEXT -1 1 "." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "with(plots,contourplot):" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 31 "contourplot(x/y,x=1..2,y=1..2);" }{TEXT -1 0 "" }}} {PARA 15 "" 0 "" {MPLTEXT 0 21 11 "contourplot" }{TEXT -1 38 " doesn't work when the bounds for the " }{XPPEDIT 18 0 "y" "6#%\"yG" }{TEXT -1 24 " variable depend on the " }{XPPEDIT 18 0 "x" "6#%\"xG" }{TEXT -1 10 " variable." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 51 "contour plot(x+y,x=0..1,y=0..x,coloring=[red,blue]);" }}}{PARA 15 "" 0 "" {TEXT -1 23 "For copyright reasons, " }{MPLTEXT 0 21 16 "patchcontourp lot" }{TEXT -1 84 " is a procedure that produces a new version of the \+ original Maple library procedure " }{MPLTEXT 0 21 16 "`plots/contplot` " }{TEXT -1 27 " and a modified version of " }{MPLTEXT 0 21 14 "`plot/ iplot2d`" }{TEXT -1 16 " under the name " }{MPLTEXT 0 21 20 "`plot/ipl ot2d/patch`" }{TEXT -1 82 ", rather than being a new version of the Ma ple library procedure itself. Running " }{MPLTEXT 0 21 18 "patchconto urplot()" }{TEXT -1 227 " once will save the new procedures into a lib rary (which could be the Maple Advisor Database library - saving it in to Maple's own \"lib\" library is not recommended). Then (as long as \+ this library's directory is present in your " }{MPLTEXT 0 21 7 "libnam e" }{TEXT -1 126 " before Maple's \"lib\" directory), the patched proc edures will be used. The directory to be used is the value of the var iable " }{MPLTEXT 0 21 11 "savelibname" }{TEXT -1 65 ", if that has be en assigned a value, otherwise the first one in " }{MPLTEXT 0 21 7 "l ibname" }{TEXT -1 112 ". I recommend that your \"advisor\" directory \+ containing the Maple Advisor Database files be the first member of " } {MPLTEXT 0 21 7 "libname" }{TEXT -1 95 ", so in most cases the correct ed procedure will go there. If necessary, assign a new value to " } {MPLTEXT 0 21 11 "savelibname" }{TEXT -1 16 " before running " } {MPLTEXT 0 21 16 "patchcontourplot" }{TEXT -1 2 ". " }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 27 "savelibname:= \"c:/advisor\";" }}{PARA 11 " " 1 "" {XPPMATH 20 "6#>%,savelibnameGQ+c:/advisor6\"" }}}{PARA 0 "" 0 "" {TEXT -1 8 "Now run " }{MPLTEXT 0 21 18 "patchcontourplot()" } {TEXT -1 303 ". A warning will result if you attempt to install the p atch in a directory whose name does not include the word \"advisor\", \+ and you will be asked to confirm that this directory is the proper tar get. This is intended to prevent you from accidentally writing to Map le's own \"lib\" or \"update\" libraries. " }}{EXCHG {PARA 0 "> " 0 " " {MPLTEXT 1 0 19 "patchcontourplot();" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#Q4Installed~the~patch6\"" }}}{PARA 0 "" 0 "" {TEXT -1 35 "Now th e examples above should work:" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 31 "contourplot(x/y,x=1..2,y=1..2);" }{TEXT -1 0 "" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 51 "contourplot(x+y,x=0..1,y=0..x,coloring=[r ed,blue]);" }{TEXT -1 0 "" }}}{PARA 15 "" 0 "" {TEXT -1 49 "The follow ing bugs are not fixed by this patch. " }}{PARA 15 "" 0 "" {MPLTEXT 0 21 11 "contourplot" }{TEXT -1 54 " doesn't work with two-dimensional coordinate systems." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 58 "cont ourplot(r*cos(theta),r=0..3,theta=0..Pi,coords=polar);" }}{PARA 8 "" 1 "" {TEXT -1 73 "Error, (in plot/iplot2d/patch) cannot convert to coo rdinate system polar\n" }}}{PARA 0 "" 0 "" {TEXT -1 82 "Three-dimensio nal coordinate systems do work, but not in the way you might expect." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 84 "contourplot(r*cos(theta),r =0..3,theta=0..Pi,coords=cylindrical,scaling=constrained);" }{TEXT -1 0 "" }}}{PARA 0 "" 0 "" {TEXT -1 14 "It seems that " }{MPLTEXT 0 21 55 "contourplot(f(u,v), u=a..b, v=c..d, coords=cylindrical)" }{TEXT -1 78 " actually plots the projection in the xy plane of the contours \+ of the surface " }{XPPEDIT 18 0 "r = f(theta,z)" "6#/%\"rG-%\"fG6$%&t hetaG%\"zG" }{TEXT -1 18 ", i.e. the curves " }{XPPEDIT 18 0 "r = f(th eta, c)" "6#/%\"rG-%\"fG6$%&thetaG%\"cG" }{TEXT -1 38 " for different \+ values of the constant " }{XPPEDIT 18 0 "c" "6#%\"cG" }{TEXT -1 1 "." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 106 "To pro duce a contour plot in a two-dimensional coordinate system, use the Ma ple Advisor Database function " }{MPLTEXT 0 21 14 "changecoords2d" } {TEXT -1 1 "." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 91 "changecoord s2d(contourplot(r*cos(theta),r=0..3, theta=0..2*Pi,scaling=constrained ), polar);" }}}{PARA 0 "" 0 "" {TEXT -1 129 "To make a contour plot us ing a three-dimensional coordinate system such as cylindrical coordina tes (plotting the level curves of " }{XPPEDIT 18 0 "z = f(r,theta)" "6 #/%\"zG-%\"fG6$%\"rG%&thetaG" }{TEXT -1 41 "), you can use the paramet ric version of " }{MPLTEXT 0 21 11 "contourplot" }{TEXT -1 1 "." }} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 100 "contourplot([r,theta,r*cos( theta)], r=0..3, theta=0..2*Pi, coords=cylindrical, scaling=constraine d);" }{TEXT -1 0 "" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 9 "See also:" }{TEXT -1 1 " " }{HYPERLNK 17 "change coords2d" 2 "changecoords2d" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "contou rplot" 2 "contourplot" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "coords" 2 "c oords" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "labelledcontourplot" 2 "labe lledcontourplot" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "plot[options]" 2 " plot,options" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "plots" 2 "plots" "" } }}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 22 "Maple Advisor Database" }{TEXT -1 18 " R. Israel, 2000" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}}{MARK " 0 23 4" 1 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }