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.

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

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

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

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.

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

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:

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

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

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?

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.

I would like to plot in 3D a solenoid toric in cylindrical coordinates.
here is the system equation.

Download 4968_Solenoid toric.docView file details
I would like to plot this solenoid toric equation in maple 11
in this file
Please replace this text with the link to your file.
The link can be found in the

File Manager
I'm glad to see the dot operator and I'm trying to get around some limitations since it doesn't understand general matrices and vectors. Consider the expression
T(g(a)).h(a).
In my case, T is a transpose operation and a is a vector. I'm trying to differentiate it with respect to a. The general derivative is of the form,
T(h(a)).diff(g(a),a) + T(g(a)).diff(h(a),a).
My question is how to get Maple to understand how to apply this particular derivative rule. If I just blindly apply the derivative, I get the second term fine, but the first term is not in a useful form. Basically, I need to tell diff how to carry out the product rule for these non-commutative terms.

What is the fastest code for integer dot product in Maple ? I am currently using the inner command, however there seems to be a lot of overhead. It is easily slaughtered by GMP. I was wondering if there is a dedicated external routine or something else that I can call ? I want to avoid linking in a C library just for this.
On a related note, I think Maplesoft should develop a companion to the LinearAlgebra:-Modular package that supports fast operations with dense integer matrices in compiled code. I know the LinBox library supports this, maybe it could be linked in ? I actually don't