A question in plot command...

Here I difine a subfunction:

mandelbrot := proc(x, y)
local c, z, m;
c := evalf(x+y*I);
z := c;
for m to 30 while abs(z) < 2 do
z := z^2+c
od;
abs(z);
end:

Then I want to plot this function using densityplot command:

plots[densityplot](mandelbrot, -2 .. 0.7, -1.2 .. 1.2, grid=[50, 50], style=patchnogrid, scaling=constrained);#This command is right.

But...

plots[densityplot](mandelbrot(x,y), x=-2 .. 0.7, y=-1.2 .. 1.2, grid=[50, 50], style=patchnogrid, scaling=constrained);#Error, the proc I defined could not determine whether abs(x+1.*I*y) < 2.

Maplet Plotter does not plot...

To Maplet enthusiast: I uploaded a functional shortened code from a 35-page code. See ShortVersion.mw under Recent Files. Although the file is compiled/interpreted successfully by Maple 11, the maplet plotter did not plot. I will appreciate it very much if someone can offer an explanation why the element failed and a possible suggestion on how to correct the problem. Many thanks Pat Velez

Diff problem...

Here is a derivative that I'm trying to take that I get a different answer from Mathcad. This would normally be ok I guess except when trying to figure arclength in Maple I don't get an answer and in Mathcad it works fine. diff((3+4*y^4)/12*y,y); The original equation is: 12xy - 4y^4 = 3 Thanks, glenn

cartesian to polar equations...

I am trying to convert equations from cartesian to polar and spherical expecting Maple to change the variables from x,y and z to r, theta, etc. I presume I am using the wrong commands. convert(exp(sqrt(x^2+y^2)),polar) returns the same expression in x and y. What is the correct command? thanks

why won't this plot?...

I seem to keep running into things in Maple that I just can't get to plot. I have been using Mathcad and am trying to learn to do everything in Maple, but keep finding myself having to go to Mathcad to do even the simplest things. Could someone please help and explain to me what I'm doing wrong? I have with(plots) and restart() at the top of my page. I then do this: g1 := implicitplot(3x^2,x=0..10,y=0..10); display( g1 ); This results in it just printing the display line again, no graph is shown. I can get this to work using the plot command but since its not very easy in Maple to print multiple equations on a single graph I have started trying to do them this way. If there is a better way to do graphs then please tell me this as well as I'm trying to learn Maple as best as I can.

Integral problem...

I have a fairly simple integral that I'm trying to complete in Maple and keep having to go to Mathcad to get an answer that I can use. This is just one example of many times this has happened and I'm wondering if maybe I'm entering something wrong or if there is a better way to do it. int( (x^2 + 1)^3/2, x=0..1); The answer coming back from Maple is really long, where the answer coming from Mathcad is really short. Can anyone tell me what I might be doing wrong? Thanks, glenn

Parameterized solutions...

Hi, I'm new at Maple, trying to migrate from Mathcad but I'm getting stuck on a basic problem. I want Maple to find numeric solutions to a maximization problem and express the solution as a function of the problem's parameters. To take a very simple example of the more general thing I want to do, suppose I have a profit function which is a function of inputs T and L and factor prices w and r. ```F:=(T,L)->T^(1/2)*L^(4/5); Profit := (T, L, w, r) -> F(T, L)-w*L-r*T;``` I seem to be able to almost isolate the parameterized functions I want as follows:

Dagger...

Can someone help me with the Dagger command in the Physics package ? I can't seem to get it to work for matrices. thanks,

Slider usage for maplets query...

I'm just learning to write Maplets for the purpose of using them as a teaching tool. Two questions: 1. I'd like to have a slider that updates a plot argument AND plays the plot's animation but I can't seem to figure out how to write two controls into the slider's options. (I've tried "Action(Evaluate...,SetOption...) to no avail. 2. Is it possible to have the location of the slider read in 'real-time' i.e. as the user moves the slider back and forth a feature in a plot changes? It seems as if the 'onchange' option is required but I can't seem to get this going either. Cheers, Co

D -> Diff conversion...

I am trying to find a simple way to convert an expression in D notation to the corresponding expression in Diff notation. In particular I am interested in expressions, such as -D[1](f)(x-y,z-y)-D[2](f)(x-y,z-y), which should become Diff(f(x-y,z-y),y). Can maple handle this?

producing high-quality graphics...

I am trying to produce a publication-quality graph. The graph consists of several curves and is a combination (using the display command) of some output from plot and odeplot. I have uploaded the Maple 10 worksheet, plotFig1.mw, that produces the graph so that others can see what I've done. I have also uploaded plotFig1.eps, the encapsulated postscript file that contains the graph exported from the final graphic in this worksheet. I have tried different possibilities but am still disappointed with the quality of the curves produced, especially the "aliasing" (zigzagging horizontal and vertical line segments that poorly simulate smoothness) near the maxima of these curves.

Solenoid toric...

I would like to plot in 3D a solenoid toric in cylindrical coordinates. here is the system equation. Download 4968_Solenoid toric.doc
View file details