MaplePrimes Questions

Is there are way in maple to check if two expressions are equal for certain intervals for each variable?
I tried to create a formula to give me some propabilities in a card game scenario. I used two different methods to find it, and ended up with these two formulars that seems to give me the same results, but I don't know how I would go about showing by hand if they are equal.

All variables are whole numbers.
I added a picture with the variable intervals and the two formulas.

Not used to these kind of notations, so tell me if anything is unclear.


Find x  for which the path (on the real line):
        b -->  x -->  a --> x --> d --> b

has a minimal length.
Perhaps through the Repetition Statement (



For the space curve in the linked worksheet, RadiusOfCurvature and Binormal give incorrect results. Why?

Please tell me if the above link doesn't work.

A man starts from "b" and go to the point that we have to find, later he goes to "a", later to "d" passing to The Point that we have to find, and finally he comes back to "b".

I have to find the point that optimizes his movements.
How can I do? Is there any specific command?

Thanks in advance

I have a function which calculates a number for [x,y] inside a matrix, which depends on the values surrounding said initial cell (from [x-1,y-1] yo [x+1,y+1]). However, for the values on the border, the idea is to go around to the opposite side, creating a Torus of the sort.
The solution I seemed to have found was to create 4 indices: 2 controled with 'for' and 2 which were modified accordingly to be used as imputs for the function:

for r from x-1 to x+1 do
    for t from y-1 to y+1 do
        if r=0 then i:=N; else i:=r; fi;
        if t=0 then j:=N; else j:=t; fi;
        if r=N+1 then i:=1; else i:=r; fi;
        if t=N+1 then j:=1; else j:=t; fi;
od; od;

(the print commands are for the tests I have been running so see where the potential error lied).
If you run this script, you can clearly see for x0,y0<>1 that it works perfectly, even for x0,y0=N where it succesfully goes around and changes to 1. However, for x0,y0=1 it isn't able to detect that r&t=0 and so it doesn't change it to N; creating an error where it tries to find the value 0 of an Array.

Thanks in advance,

how to read a jpg picture and draw mesh on it?

mesh generator in maple

how to get all points and lines from this mesh on jpeg picture?

How can i answer iv on Maple?

The problem I am trying to solve requires a significant amount of computation time. I am unaware if a solution to the problem exists. If a solution does exist, I only need one solution, not the set of every possible solution. Is there a way to restrict the solve function such that when (if) one solution is found, the computation halts and the solution is outputted?

I can't seem to plot the second derivative graph for f'' versus y. Is it possible to use the fdiff command twice in a line?

Open to all opinions. Any help would be greatly appreciated :)


I have a set of differential equations which I have solved for a specific value, and would like to use the second answer (F__A(V)) in my next calculations


What command can I use to retrieve that value?

     [V = 0.00001, F__A(V) = HFloat(3.498873118476744e-6), 

       F__B(V) = HFloat(1.9101126881523255e-5), 

       F__C(V) = HFloat(9.550563440761627e-6)]


how to define VertexWeight in Graph Theory package

I have tried to do it by the following command "File/Modelica/Import Modelica Library" in MapleSim GUI. An error appears saying "Modelica is a reserved name".

I think you can also reproduce it by downloading the Modelica library from the following web site: "". And then importing it in the usual way by openning the file at the root directory.

I think I am missing something here, so any advise/information/minimal commentary would be greatly appreciated.

Cheers, Ovle


I am working in a simulation, which requires me to create a checkerboard of values which I paint afterwards according to its value. The idea is to create a sequence of images (which I could export for every iteration and create into a gif/timelapse afterwards). The problem I am encountering is that when I try to plot it, I only obtain a difuse coloring scheme, without having a specific color for every pixel.

if you search for the color command in plots ( one of the examples is more or less the result I want, but I would like to have it without the gridlines and being able to control the color according to the value of the matrix in said position.


My current attempt, and the one closest to the solution is:


R:=Matrix(1..N,1..N, datatype=integer); for x from 1 to N do for y from 1 to N do R[x,y]:=P[x,y,2]*18+P[x,y,3]: od: od:R;
#P is the matrix where I do the calculations and R is the matrix I want to plot after every step of the calculation.

surfdata(Matrix(R), 1..N, 1..N, style=surface,
         dimension=2, labels=["x", "y"],
#the surfdata I resqued from another proyect I had. I know it is not thought for this tipe of grafs, but it was the closest I could come by.


I do not know if it is a better idea to use an Array or a Matrix to plot this. While the P array isn''t touched, I do not mind modifying in any way the R matrix

Thank you,


after solve a set of equations, i got a set of solutions, [A,B,C], if i remove one of solution [C]

is it possible to find this removed solution from solutions set [A,B]

how to check the dependency of groebner basis or a set of polynomials?

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