Items tagged with explore


Dear Maple users

Let's say I want to plot a line containing a parameter, for example (a+2)*x+6, where a is the parameter. When using the following Explore command:

Explore(plot((a+2)*x+6, x = -5 .. 5, view = -10 .. 10), parameters = [a = -4.0 .. 3], initialvalues = [a = 1])

I will be able to change the value of a by using the slider. The actual value of a is currently displayed as well. Now, However, I want to have the current value of the slope of the line displayed as I move the slider. How is this done? When using a print command inside the Explore command the value of a+2 is not displayed, rather "a+2". Can I use some kind of component?

I hope someone can help. 

NB! I constructed this rather doll example, just to make it simple.

Regards, Erik


Dear Maple users

I was using the animation command to create an animation consisting of a running sine curve with a ball following the curve, as shown below. I wonder if it is possible to create it with the Explore command too? Or is this command more limited? I need to be able to add more animations, like I can with the display command ...

Regards, Erik.


Strange things happen with the "Explore" command! Let's say I want to plot the function F(x)= a*x. When I am writing:

>Explore(plot(a*x,x=0..10),parameters=[a=0..2]) ;

everything is OK, but when I use:

>Explore(plot(F,x=0..10),parameters=[a=0..2]) ;

the initial frame is correct but when I try to move the parameter cursor, the plot dissapears. 

Any ideas what is wrong and how I can fix this?

Can i make Explore with number of parameters differs from parameter in explore?
For excemple i whant to make sum with 'l' values wich will declorate in explore, and 'l' - count of them will declorate in same explore, but it dont work, so is it posible?




Explore(add(cat('c', eval('i')), i = 1 .. l), parameters = [l = [seq(i, i = 1 .. 5)], seq(cat('c', eval('i')) = 0 .. 1.0, i = 1 .. l)])

Error, unable to execute seq



ec := proc (l) global f, p; f := add(cat('c', eval('i')), i = 1 .. l); print(f); p := [seq(cat('c', eval('i')) = 0 .. 1.0, i = 1 .. l)]; Explore(f, parameters = p) end proc;

proc (l) global f, p; f := add(cat('c', eval('i')), i = 1 .. l); print(f); p := [seq(cat('c', eval('i')) = 0 .. 1.0, i = 1 .. l)]; Explore(f, parameters = p) end proc






Explore(ec(l), l = [seq(i, i = 1 .. 5)])









With the Explore function, the use of sliders is very convenient to test the sensibility of a result with regard to a parameter.

However, It is also very convenient to specify a accurate value to a parameter.

Consequently, i would like to combine the use of slider (usually defined in the default mode) with the use of the option "controller=textarea".

Do you have ideas to combine the use of slider and the use of textarea for the definition of the parameters in the Explore function ?

Here you can find a example of the theta4 function depending of 8 parameters (xp3,xp4,zp3,zp4,phi3,phi4, gamma3, gamma4).

I manage to use either the sliders or the textarea option but not both.

Thank you in advance for your help and ideas.


I try to use the Explore function on a trigonometric expressions depending of 8 parameters. My aim is to study the influence of these parameters on the results.

However, i receive an error message and I didn't manage to troubleshoot it.

May you have a look of an extract of my code and see if you see the mistake ?

Thanks a lot for your help.

Dear Community,

I have a complicated function with two independent variables, namely QD( tD,  rD ). I would like to explore its behavior in a semilog plot in the range of tD = 1.0 .. 1000.0 with changing rDs, where I would like to change the values of rD with a slider of the Explore command. I've developed the attached code, yet it gives me an error message, "unexpected option... " Could you pls. have a look at it what do I do wrong?

Tx for the kind help in advance

best regards


1.I want to plot (x-x0)^2 from x=0..10 with a value for x0 in the plot function not in the procedure. The procedure should 

test x against x0 and if x<x0 then y=0 else y=(x-x0)^2

2.Is it possible to use explore and use x0 as a slider?





I wote a command that creates a plot with a single point:

plots[pointplot](a*[1, 1])

Before hitting Enter I called the context menu and chose Explore. As I change the parameter a the point remains fixed in the picture but the scales change. I wanted the opposite: the scales should stay fixed and the point should move. How can I do this using Explore or in some other way? I would like to see the point move as I drag a slider control.

Thanks for the help.


I created a new Document with a single command:


Then I right-clicked on the command and chose Explore from the context menu and then clicked on the Explore button in the dialog box. A rectangle with a slider appeared. So far so good.  However, I cannot delete the rectangle from my Document. I tried to select the rectangle and press Delete, Ctrl+Delete, and to right-click on it and choose Cut from the menu. Nothing works.

If I select both the rectangle and the command A=1 all the three actions described above also fail to delete anything.

Help will be appreciated.

Below I want to explore a function behaviour using a slider to determine the value of 'a' so the function is shown in a plot, but I can't figure out how to use Explore to bind the value of 'a'.

If I bind bind the value using "a := 5", then plot works, but when binding through Explore it does not work.  I can also write the function in the plot like "a * x", but that is not as general as using a function.

How to explore function like that.

Good morning everybody.

I have tried Explore to draw plots in an interactive way.

The function I want to draw (plot3d) is automatically constructed by a specific code, as well as the names of the parameters it depends on. These are of the form P||1, P||2, ...P||N (N is an integer determined during the construction)

... but I did not succeed !

After some investigations I was able to reduced the problem to the following one

N  := 2:
F  := add(P||k * x^k, k=0..N):
G := [seq(P||k=-1.0 .. 1.0, k=0..N)]:
Explore(plot(F, x=0..1), parameters=G)

The result is the classical imbedded window with a plot of -1-x_x^2 and three sliders below.
But as soon as I push anu of them the plot disappears and connot be recoverd.

But the following sequence seems to work as expected

N  := 2:
F  := add(P__k * x^k, k=0..N):
G := [seq(P__k=-1.0 .. 1.0, k=0..N)]:
Explore(plot(F, x=0..1), parameters=G)

Before changing my code, could you please confirm me that parameter names such that P||k are not correctly accounted for by Explore ?

Auxiliary question : more generally, are there points which I have to count carefully when I use the P||k construction ?

Thanks in advance

Hello everyone!

I am wondering why the Tabulate command does not work with Explore. E.g.:

Explore(`DocumentTools:-Tabulate`([plot(sin(a*x)), plot(cos(x-a))]), parameters = [[a = 0 .. 10, controller = slider]])

I know that I can display an array of plots with the display(Array([....])) which works fine with explore but Tabulate is another good way to display multiple plots and it gives better control over individual plots properties (e.g. setting different size to different plots). Is this a bug or Tabulate is just not meant to work in that context?  

My code works in Maple (18.02), not Maple Player (2015.1). Much headache ensued.

I've isolated the problem in a toy form:

Defn := proc (scaleby)

Explore(Defn(p), parameters = [p = [1, 10, 100]]);

In Maple will return "integer" for any value of p selected in the combobox.

In Maple Player returns "string" for any value of p selected in the combobox

Is there something I'm missing here? Is Maple Player not backwards compatible to versions of Maple prior to 2015?

My understanding is that Maple Code should export without headache to Maple Player. Is this a solid understanding?

Thanks for helping out a newbie!




I would like to slightly modify the "Explore" command -- I find it extremely useful, but the layout often doesn't work well for me (my typical use case is say 12 plots with ~10 parameters that vary). The problem is that the default alignment the columns of the table that contains a matrix of plots is "Center" and my plots don't fit on the screen properly (no matter how I play with sizes, placement, etc) and I would like it to be "Left" aligned --- aligning things manually (via right click) after the explore command is executed is possible, but painful, given that I often change my code.

... bottom line is that I would like to be able to re-define the "Explore" command.

I tried doing so by first calling:

... then removing all the numbers, renaming the proc to sat MyExplore, declaring it (i.e. so maple understands it) and for now using that instead of the old Explore in my program (with no actual code changes for now). The problem is that I get the following error:

Error, (in DocumentTools:-Layout:-Table) number of Column arguments, 3, exceeds total column span, 1, computed from Rows' Cells

I think, somehow maybe showstat is not showing the full thing? or maybe it is part of a more complicated module? or maybe by removing the numbers the formatting got screwed up (i was careful here)?

So my question:

How would I define my own function "MyExplore" that (for now) contains exactly the same code and functionality as the built-in "Explore"?


1 2 3 Page 1 of 3