Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

У меня есть код для активации Maple, но я не знаю какой имя сервера которое у меня требует для активации.

Dear Users!
Hope everyone is fine here. I have some questions about the following code:

Sol := {u[1, 1, 1, 1] = 0.2754389666e-1, u[1, 1, 1, 2] = 0.1305849194e-1, u[1, 1, 1, 3] = 0.2886163307e-2, u[1, 1, 1, 4] = -0.7346547512e-3, u[1, 1, 2, 1] = 0.4659732849e-1, u[1, 1, 2, 2] = 0.1466736306e-1, u[1, 1, 2, 3] = 0.2615590961e-3, u[1, 1, 2, 4] = -0.2999417306e-2, u[1, 2, 1, 1] = 0.4659732850e-1, u[1, 2, 1, 2] = 0.1466736306e-1, u[1, 2, 1, 3] = 0.2615590934e-3, u[1, 2, 1, 4] = -0.2999417305e-2, u[1, 2, 2, 1] = 0.7816751150e-1, u[1, 2, 2, 2] = 0.1319905841e-1, u[1, 2, 2, 3] = -0.3594991974e-2, u[1, 2, 2, 4] = -0.6810219469e-2, u[2, 1, 1, 1] = 0.4277449264e-1, u[2, 1, 1, 2] = -0.7962732407e-2, u[2, 1, 1, 3] = -0.1373208839e-1, u[2, 1, 1, 4] = -0.2756504221e-2, u[2, 1, 2, 1] = 0.7104313232e-1, u[2, 1, 2, 2] = -0.2934293200e-1, u[2, 1, 2, 3] = -0.1500623941e-1, u[2, 1, 2, 4] = -0.3113543133e-2, u[2, 2, 1, 1] = 0.7104313230e-1, u[2, 2, 1, 2] = -0.2934293199e-1, u[2, 2, 1, 3] = -0.1500623942e-1, u[2, 2, 1, 4] = -0.3113543128e-2, u[2, 2, 2, 1] = .1180017068, u[2, 2, 2, 2] = -0.7162229544e-1, u[2, 2, 2, 3] = -0.8898045960e-2, u[2, 2, 2, 4] = -0.9223166732e-2};
My aim is to write all the entries in Sol like the following way

u[1, 1, 1, 1] := 0.2754389666e-1;

u[1, 1, 1, 2] := 0.1305849194e-1;

u[1, 1, 1, 3] := 0.2886163307e-2;

and so on. For this I used the following logic (op command)

for i from 1 by 1 while i <= 32 do

lhs(op(i, Sol)) := rhs(op(i, Sol))

end do;
But it cant work. Please help me to solve my matter. I shall be greatful to you for your positive response. Please take care and thanks in advance.

Special request

@acer @Carl Love @Kitonum @Preben Alsholm


The question:

Write a Maple code to find the sum of digits of the number 12^6^5, and then it returns the message ‘This number is divisible by 3’ if the sum is a multiple of 3. Otherwise, it returns either ‘This number is a prime number’ or ‘This number is neither prime nor divisible by 3’.  


I have already found the divisors and placed them on a list, now I want the loop code stating whether there is 3 or not in the list.




For given positive integers 𝑎 and 𝑏, there exist positive integers 𝑟 and 𝑠 (the so-called Bezout’s coefficients) so that 𝑔𝑐𝑑(𝑎,𝑏)=𝑟 𝑎+𝑠 𝑏. Using Euclidean algorithm, one can find these coefficients by using a forward and a backward substitution. Surf the web, let say this one, or use any Discreet Mathematics textbook to find out how these coefficient can be computed using Euclidean algorithm. Now, write a code in Maple to compute Bezout’s coefficients for the numbers 18344 and 65208. 

 I'd like to get all at most 15 vertices Non-isomorphic  connected  bipartite graphs. One way is to use the function NonIsomorphicGraphs(k, output = graphs, outputform = graph, restrictto = connected).


s1:=[NonIsomorphicGraphs(k,restrictto = connected,output=graphs,outputform=graph)]:
bipartitegraph:=select[flatten](x->IsBipartite(x)=true, s1):

But when k=9, it is slow, I doubted that the code 

By Checking out the encyclopedia, , we knew the following number of bipartite graphs datas of , at most 14, they are not many(the datas contain  no-connected conditions)


so I read the help document about  


Ps: I know  in SageMath  we can get all bipartite graphs quikly even though n>=10  by  using the 

for g in graphs.nauty_geng('-c -b 10 -g'):
But I hope it can be realized in Maple. 




what is the commonly recomended way how to switch between maple and matlab symbolic engine at matlab. I am using Matlab R2019a + Maple 2019.1 with Maple toolbox for Matlab. After instalation of Maple toolbox for Matlab, the Matlab is able to use only (!!!) Maple symbolic engine. The only way I found to go back (to the Matlab symbolic engine) is by uninstall Maple toolbox and reset matlab path.

Is there any more flexible way how to switch between maple and matlab symbolic engine?

P.S. Sorry for asking, but the actual maple toolbox documentation is very brief and unclear...

Application developed using Maple and MapleSim. You can observe the vector analysis using Maple and the simulation using MapleSim. Also included a video of the result. It is a simple structure. A pole fastened by two cables and a force applied to the top. The results are to calculate tensions one and two. Consider the mass of each rope. In spanish.

Lenin Araujo Castillo

Ambassador of Maple


I have two input variables namely torque and speed. I need to find the input current for the given induction motor. I have written down the required equations in math mode. So, when I give a specific input i.e. torque is 30 Nm and speed is 2000 rpm i get the input current. Now I need to put in a for loop for the math mode i.e. i need output current dataset for 10% increment in torque from zero to full torque and 10% increment in speed from 0 to full load speed. I cant seem to find any resource to do that in maple. Could anyone help me out?

When I use block of 'if' in procedure Work I see empty graph. If there are no 'if' everything works properly


work := proc() local f, k, x0, y0, result, l;
l := Get(L::algebraic);
x0 := Get(X::algebraic);
y0 := Get(Y::algebraic);
result := subs(x = x0, l);
f := plot(l);
k := plots:-pointplot([x0, y0]);
plots[plots:-display]({f, k});


if result = y0 then Set(res = "Belongs");
elif y0 < result then return Set(res = "Above");
elif result < y0 then return Set(res = "Below");
end if;

end proc;


mpt := Maplet(Window("Test", [[Plotter[f]()],
["Line eq", TextField[L]()],
["X ", TextField[X]()],
["Y ", TextField[Y]()],
["Result ", TextField[res](editable = false)],
[Button("Результат", Evaluate(f = 'work()')), Button("OK", Shutdown([res]))]]));



With block of 'if'

Without block of 'if'

I am thinking of running maple in google cloud. Does Maplesoft available in google cloud


Im working with GRtensor iii package for Maple.

The goal is to obtain values of specific product of the Ricci tensor and scalar function in FRW spacetime together with second order covariant derivative acting on this product. .


After i defined general 2 covariant derivatives acting on that product


I have errors when i want to define contracted forms of this expression/tensor:


which should be scalar quantity (fY*Rab );ab


and this should have only 2 lower indices ac

Hovewer i obtain errors for both cases
Error, (in grtensor:-grdef) lhs/rhs index conflict.

If I know the direction of up and down

how to control normal distribution to fill in missing data to the direction I want in maple?

just like fill in missing pixel in bitmap file.

  Dear sir, I request to provide the inequalities or constraints for the uploaded Linear Programing Problem to plot the graph and solve by simplex method.

Hi, I'm importing an Excel file then trying to feed it to FrequencyTable. While it works, it shows me some range intervals that seem to be calculated by the function. I would like to use a specific interval, but I can't find what parameter to use. Bins won't do the trick, since it doesn't let me specify the range. 

Thanks in advancce. 

I have noticed that there exists a Stack Exchange site for mathematica, and not for maple. My discussions with the part of Stack Exchange that handle the creation of a new Stack Exchange community have said that I must accrue a certain level of interest in the subject in order for it to be approved, and so I thought I would begin here to see if there is suffice level of interest.

This would not diminish the use of the Maple Primes forum, and an additional proposal, in consideration of the years od dedication that have gone into this domain, be to pool the data between the two, make reputation points the same on both, perhaps even user profiles and questions answered already linkable, and all of the questions already addressed here showing up in the search on both domains.

I am proposing this simply because I want to encourage the use of maple, and have noted that Stack Exchange is very popular. 

So I am posting this to get overall feedback from other Maple users, as to what their opinion is regarding this proposal, and advice on whether it should and how it ought to be pursued.

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