Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hi, I want to study the Maths in a online university, And I will use Maple for my study. Can I purchase the maple student version?

Which version can maple use GPU with SageMaker in amazon P3?

i want to increase the speed of maple

do I need to upload a maple setup file or maple has this?

A=(1  1)

     (1  0)
Determine the smallest natural number n such that the matrix A^n contains

an entry greater than 2019.

 

(I know the answer is A^17, but I don't know how to use maple in order to determine when an entry becomes greater than 2019.)

Suppose that (x1, x2, . . . , xn) is a sequence of real numbers. The mean μ and the standard deviation σ are defined as
μ= n(x1 +x2 +...+xn);

σ=√[(1/2)n[(x1 −μ) +(x2 −μ) +...+(xn −μ) ]]


1. Suppose that n = 20 and xk = k for all k. Write for loops to determine the mean and the standard deviation of the sequence.

2. Suppose that n = 30 and xk = k3 for all k. Write for loops to determine the mean and the standard deviation of the sequence.

I use the following plot in Maple 13. I would like to have the colorbar also along with the plots. Help me to write the commands to get the colorbar.

I have made a document with mathContainer, plot component and sliders, which works fine, but needs the startup code to be run manually, everytime to remove the plot error message, popping out in the first instance.

              unrecognized function "inequal" where PLOT DAG expected

I donot know the mistake I have made. 

Thanks for any suggestion. 

Ramki.
 

restart

 

a:

b:

 

NULL


 

Download Doubt_on_inequalCommand.mw

I have an array which coloumns represents coordinates of the different points. Points connected should display some kind of a line. Every row represents coordinates for different time step.

I am trying to plot the animation od that line movement during the time. Any suggestions on this animation? It is easy to plot points and lines for one of the rows in the array, but I cannot make it to automaticly animate it through time steps.

Now I have new question

Is it possible to combine more than 1 list array? Like the following example

given A:= [1,5,7]

B:[23,56,12]

C:=[1,3]

Then I have

[1,56,1]

[5,12,3]

[7,23,1] and so on.

I have tried to use combinate. But I still have problem

Dear all,

Does anyone know how to do this case?

For example, given a sets A={20,15,10,30,46,78}. Then I put the upper bound = 50
I want to add the elements and stop adding before reaching or exceed the upperbound. So, what I want to achieve is

B={20,15,10} since 20+15+10 +30 = 75. Stop in 4th element.

Thank you

 

Hello

I have a series of plots saved in fig0 (fig0:=rtable(1..number_of_figures);).  I had them plotted using plot:-display(fig0) but I could not figure out how to remove the frame box that separates each figure nor how to control the space between them when using size.

 

An exaggerated example follows

Many thanks

Ed

 

 

Hi everybody:

I have created a matrix in Maple but the Maple show it like as follow picture, How can I see the members of this matrix? 

tnx...

Hello everyone

I try to solve the system of nonlinear equations, where three variables are inside of integrals, for different values of the real parameter q.

It seems that  not for all values of q the system has a solution because I substitute different q but the function fsolve does not give any numerical answer or the special message even after the long evaluation. 

Here the code:

restart;
q := 70;
k0 := 100; n := 3; r := 1.1; t := 0.1e-2; Eg := n/((n+1)^(3/2)+1)^(2/3); kF2 := (1/((n+1)^(3/2)+1))^(1/3);
R1 := int(a^2*tanh(sqrt((a^2-mu)^2+d1^2)/(2*t))/sqrt((a^2-mu)^2+d1^2), a = 0 .. k0);
R2 := int(a^2*tanh(sqrt((a^2-mu+Eg)^2+d2^2)/(2*t))/sqrt((a^2-mu+Eg)^2+d2^2), a = 0 .. k0);
R3 := int(a^2*(1-(a^2-mu)*tanh(sqrt((a^2-mu)^2+d1^2)/(2*t))/sqrt((a^2-mu)^2+d1^2)), a = 0 .. k0);
R4 := int(a^2*(1-(a^2-mu+Eg)*tanh(sqrt((a^2-mu+Eg)^2+d2^2)/(2*t))/sqrt((a^2-mu+Eg)^2+d2^2)), a = 0 .. k0);
Eq1 := evalf(k0+k0*(r-1)-(1/2)*Pi*r*kF2*q-R1);           
Eq2 := evalf(k0-(1/2)*Pi*kF2*q-R2);
Eq3 := evalf(2/3-R3-R4);
fsolve({Eq1, Eq2, Eq3}, {d1, d2, mu});

I know that this system has the solution for some values of q but why I can't get the solution or the answer using fsolve?

Thank you in advance.

 

Update. I apologize, I made some errors in expressions R2 and R4. I have corrected the question and the code. But the problem is still unresolved.

I've been trying to learn how to do Grid-based parallelization in Maple, but I've been running into a weird error.

Suppose I run the following simple Grid code, which just runs on a single node:

X := [1, 2, 3, 4]; babyGrid := proc (X) [Grid:-MyNode(), X] end proc; Grid:-Launch(babyGrid, X);

 I get this error:

Error, (in Grid:-Launch) invalid input: Launch expects its 7th argument, exports, to be of type ({list, set})({name, string}), but received [1, 2, 3, 4]

So for some reason it assumes that X is the exports variable. This error goes away if I instead make X an array X:=Array([1,2,3,4])

In this case the code runs fine and produces the expected output.

What's the difference here? Is there a reason that Grid can't take list arguments? Is there a reason this is so obvious that it isn't documented?

 

I find different commands for for different math expressions from mathContainer to be plotted in a plot component.

In the enclosed document, the mathcontainer expression plots outside, but not inside the plot component. What is the mistake, can any one tell me?

Thanks.
 

restart; with(plots)

inequal(`or`(`and`(`and`(3 <= y, x < 2*y+8), 2*y-6 < x), `and`(`and`(`and`(-5/3 < y, y < 3), x < 2*y+8), -y+3 < x)), x = -2 .. 15, y = -4 .. 11, optionsfeasible = [[color = "black"], [color = "red"]])

 

"In the following empedded plot componenet, it is not plotted. What is the mistake I am making"? Can anyone help?""

 

``       

Code inside Click to Plot Button -  Edit Click Code

use DocumentTools in
with(plots):
plt:= GetProperty("MathContainer0",expression);
SetProperty("Plot0",value,plt);
end use;

 

``In the plot component "Plot0" it is not plotting!!

 

 

``


 

Download Doubt4thMar2019_Plot_inequalexpressions.mw

Update

I am not sure what happened, but now after starting Maple, these PDE's no longer hang. Even though I tried them before number of times before posting to make sure.  This is strange. I do not know what happened.

Any way, there is no issue any more. These do not hang in version 319.

original post

Hello Maple experts.

FYI, I noticed some pde's are no longer solved (hang) after downloading latest physics package cloud version 319, when before when using version 301 these were solved.

version()
 User Interface: 1362973
         Kernel: 1362973
        Library: 1362973
                            1362973
Physics:-Version()
 "C:\Maple_updates\Physics_Updates_319.maple", 2019, March 3, 
    17:7 hours, version in the MapleCloud: 319, version installed in this 
    computer: the "Physics Updates" is not  installed.

Any idea why this happened? It is possible this is due to bug fix of course, but thought to point this out.

These PDE's were solved with Maple 2018.2.1 with Physics ver. 301 but not in ver. 319

#now not solved or hangs, before it was solved in 7 seconds
pde := diff(u(x, t), t) = (1/20)*(diff(u(x, t), x$2))+t;
bc := u(0, t) = 5, (u(1, t)+ eval( diff(u(x,t),x),x=1)) = 10;
ic:= u(x, 0) = -40*x^2/3+45*x/2+5;
pdsolve([pde, bc,ic], u(x, t));

#now it hangs, before it was solved in 0.2 seconds
pde :=  (A*y^2+B*x^2-a^2*B)*diff(w(x,y),x)+(C*y^2+2*B*x*y)*diff(w(x,y),y) = 0;
pdsolve(pde,w(x,y));

#now hangs when it was solved before in 5 seconds
pde := 2*diff(w(x,y),x)+((lambda+a-a*sin(lambda*x))*y^2 +lambda -a -a*sin(lambda*x))*diff(w(x,y),y) = 0;
pdsolve(pde,w(x,y));

#now hangs when it was solved before in 1.8 seconds
pde := diff(w(x,y),x)+((lambda+a*sin(lambda*x)^2)*y^2 + lambda -a +a*sin(lambda*x)^2)*diff(w(x,y),y) = 0;
pdsolve(pde,w(x,y));

Using windows 10.

 

3 4 5 6 7 8 9 Last Page 5 of 1519