Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I would have thought the arcsin(sin(x)) = sin(arcsin(x)).  Is this a bug?

Good Day to all of you.

I am using the function NLPSolve to optimize a function and get its independent variable mínimum value. The problem is that is imposible to plot that Numbers because of the output way. Is like [5.02, [x=0.02]] and is imposible for my to graph. 
The file is attached and also the code of someone tha did it in matlab, is exacly the same result i want to obtain.

I would be really thanks if someone can help me.

Best regards


Hello everyone,

I am trying to solve a system of six equations through a matrix and a vector. The matrix is 6x6, so the function "LinearSolve" should find a solution 

The matrix is

Matrix(6, 6, [[1., -1., 1., -1., 1., -1.], [1., 1., 1., 1., 1., 1.], [-2., 1.618033989, 30.94427190, -153.8246851, 371.1559479, -572.9674774], [-2., 0.6180339876, 22.94427191, -41.15905356, -37.04759741, 149.3606798], [-2., -0.6180339876, 13.05572810, 22.82468509, -20.15594802, -81.03252254], [-2., -1.618033989, 5.055728096, 28.15905368, 68.04759752, 104.6393203]])

and the vector associated with the system is

Vector[column](6, [-1/3, -1, 0, 0, 0, 0])

I am trying to solve this system with

a := LinearSolve(M3, v);

but it stays evaluating.

I have solved a similar system (5x5) with this function (LinearSolve) and it took less than a second, so I dont understand why it takes so long in this case.

Thank you in advance.


I'm a Master student and for my thesis I need to get the following function in Maple with the if then commando (or onother one that will get the same result):

But I didn't find the solution yet.

Can anyone help me out?

Thank you in advance.

Why the expression of lambda[1] is too large? One of the possible values of lambda[1] should be "sqrt(1/(4*omega^2 - 4))*a[-1]". 

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?

Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/ .


Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/ .



I have long functions that I use in my graph. To plot these functions, I'm using an implicit plot. I would like to shade the stable region in yellow, the repairer in red, and the saddle in green. I can't do that. Would you be able to help me please?


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.

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

1 2 3 4 5 6 7 Last Page 1 of 1963