MaplePrimes Questions

Good day to all; I plot both line and 3d graphs for my relation. How can we justify that line graphs and 3d graphs have the same meaning? or how can we justify each other? is there any other way to show the view of a line graph in a 3d?


I want to illustrate the notion of volume generated by a plane region, with the disks. Ideas to animate my rectangles? Thanks

I've been spending a lot of time recently basically as a physics research assistant in my spare time (which is 24/7). I've worked as a programmer before, so I have experience with other languages, but not Maple.

However, even though I literally have the whole day every day to spend trying to figure things out it seems like the documentation is quite lacking sometimes and there are things I simply cannot find without the very useful help from this community here at MaplePrimes (small example further below).

I've been thinking a lot about improving the documentation. I've always been the person on my teams pushing people to have better documentation and being better at communication.

Now, Maple isn't open source, so I can't just contribute to a repository or something. I would like to make a repository of my own that sort of mirrors parts of the documentation but is written in a way that to me feels more didactical, and with a lot of examples and edge cases that I am finding in practice.

There are so many things that happen that are unexplainable to me. My documentation wouldn't be an encyclopedic reference like the official documentation obviously, but it would rather try to explain certain things better and show cool examples.

Is there any appetite from anyone in the community here (especially the more experienced people) to help me (essentially by answering a ton of my questions as they come up, and then maybe reviewing my write-ups as I push to Github, and even maybe having an actual call to answer a question I might have)? I think this would be a helpful contribution for future users of Maple.

Just to give a small example from the last two hours of a section in the documentation that I found to not be didactical enough.

In the documentation about the Maple preprocessor, there are essentially no examples. On updating the include path, there is the following snippet

The include path can be specified on the command line that invokes Maple by using the -I option or it can be modified by calling kernelopts(includepath). Multiple paths can be specified within a single string separated by commas or semicolons or alternatively a list of paths can be entered. When using kernelopts(includepath), do not prefix the include path with -I. The maximum number of include path entries is 25.

What exactly does "calling kernelopts(includepath)" mean? I tried kernelopts(includepath) := "my/path/here". Didn't work. Perhaps I have a lack of imagination but I only found out it is kernelopts(includepath = "my/path/here") from a post here in this community. 

Consider the following code in an .mpl file

$define MACRO1 "1"

$define MACRO2 "2"


$ifdef __FILE__

$define MACRO3 "3"



$ifdef MACRO1

$define MACRO4 "4"



f := proc()

print(MACRO1, MACRO2, MACRO3, MACRO4, __FILE__):


If we run this from a worksheet and call the procedure f, the printed output is

"1", "2", MACRO3, "4", "/Users/zenterix/..."

Why does $ifdef __FILE__ evaluate to false? Ie, why doesn't MACRO3 get defined? I thought __FILE__ was a predefined macro.

I have a procedure that makes lots of plots using plots:-odeplot.

So that I don't have to write the "plots:-" part every time, at the beginning of the procedure I wrote "odeplot:=plots:-odeplot:".

Is this a bad idea in any way?

Why does the command plot(i,i=1..5) work but not plot(l[i],i=1..5) where l is the list l=[1,2,3,4,5]?

l := [1, 2, 3, 4, 5]

[1, 2, 3, 4, 5]


plot(i, i = 1 .. 5)


plot(l[i], i = 1 .. 5)




Hello to everyone

I have tried to solve This integral and untill here maple is unable to do it.

-2/3 + int(sqrt(x)/(exp((x-y)/tau ) + 1), x=0..infinity);

any idea? 
And thanks for your support

I have been unable to re-size and imported image into a Maple Flow 2022.2 document. I just used my old Maple Flow 2021 and I had no problem. When I use Maple Flow 2022.2 I cannot re-size an imported image. I was able to re-size an imported image in Maple Flow 2022.1. Is it just me or has anybody else experienced the same problem? I also imported the image into Maple 2022.2 and had no problem re-sizing the image.

Dear friends, 

If you import a table of 1-dimensional data assuming it normally distributed. Any command in Maple to generate the interval of normal distribution?

Hi everyone 

I have a question regarding an animation. The maple file is attached at the bottom. (parts of it are from tomleslie 12910

I have two spheres which move and rotate over time. Now I would like to show one ball at a certain time and the other one at a certain time and not both over the whole animation.

For example:

x1 should only be shown and visible from time -1 to 0 

x2  should only be shown and visible from time 0 to 1 

Because I want to show a kind of transition from x1 to x2 at the time 0 i cannot just start one animation at -1 and the other at 0 because then they would run at the sime time which is not the goal. 

has anyone an idea?

Thanks in advance!

Dear maple  whats wrong with the code that  maple cannot solve analytically pdes with initial conditions

sys:={diff(u(x, t), t)=0,diff(v(x, t), t)=0};
IBC:={u(x, 0)=exp((x))/(1+exp((0.5*x)))^2,v(x, 0)=1/(1+exp((0.5*x)))};

EQ := proc(M, N) RETURN((y - M[2])/(x - M[1]) = (N[2] - M[2])/(N[1] - M[1])); end proc:
_EnvHorizontalName := 'x':   _
EnvVerticalName := 'y':  
a := 7;  b := 5;  
 t:= (3* Pi)/(4):    
ellipse(el,x^2/a^2 + y^2/b^2 - 1 ): 
 point(M1, a*cos(t),b*sin(t)):  
line( L1,[F1,M4]): 
point(M1, a*cos(t),b*sin(t)):  
op(solve({x^2/a^2 + y^2/b^2 - 1 =0, y=m*(x-c)},{x,y},explicit)[2])[1]:xM2:=rhs(`%`):  
op(solve({x^2/a^2 + y^2/b^2 - 1 =0, y=m*(x-c)},{x,y},explicit)[2])[2]:yM2:=rhs(`%`):  
line( tang1,x*xM2/a^2 + y*yM2/b^2 = 1);  
line(L4,[F1,M2]);  C1:=[ HorizontalCoord(C1), VerticalCoord(C1)]; 
 F1:=[-c,0];M2:= [ HorizontalCoord(M2), VerticalCoord(M2)];    
display( [ textplot( [[ -c, 0, "F1"],[ c,0, "F2"] ,                         
[ HorizontalCoord(M1), VerticalCoord(M1), "M1"],                          
[ HorizontalCoord(M2), VerticalCoord(M2), "M2"],                         
[ HorizontalCoord(C1), VerticalCoord(C1), "C1"] ],'align'={"above",'right'},                       [polygonplot([C1,F1,M2], color=blue,filled=true,transparency=0.9)]);     
draw( [ el(color=red),M1(color=black,symbol=solidcircle, symbolsize=16),
                      M2(color=black,symbol=solidcircle, symbolsize=16),                      
                      L1( color=black),L3(color=green),L4(color=green),                      
                      F1(color=blue, symbol=solidcircle, symbolsize=16),                      
                      F2(color=red, symbol=solidcircle, symbolsize=16),
                      C1(color=black, symbol=solidcircle, symbolsize=16),                     ],                                    axes=none ) ] );
Error, missing operator or `;` Many errors Icant corrected.  Thank you.

I formatted all the input math expressions with a different style and then exported them to create a style set called Mystyle1. However, when I load Mystyle1 and apply it to a document, the functions that were typed partially obey the style, but the expressions that were inserted through the palette do not; font and size are different and bold is not applied.
Does anyone know why this happens?

If anyone wants to test it, Mystyle1 and a simple document are attached.



@ASHAN's question was about a linestyle which wasn't displayed as expected.

Maybe a handling error on my part?


4 5 6 7 8 9 10 Last Page 6 of 2177