Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

i want to write a expression without any quotes . for example in this case i want to wrate E*1    E*2 

I if a run the CompleteSquare command 


CompleteSquare(x^2 + y^2 - 2*x - y - 2 = 10, x, y)

the output is (y - 1/2)^2 + (x - 1)^2 - 13/4 = 10

Why does it places the y's before the x's? 

How do I compute the gcd of polynomials with scalars e.g. how to compute gcd (x^9-a, bx^6-c )  as polynomials in x.   here I don't see how to specify the polynomials are in x.

Is the linux version of Maple architecture dependent? 

Hi everyone, I have a problem in the code solving coupled partial differential equations. I could not find out the solution. Please help me out with this. Find the code in the attachment.

I didn't understand what the page on implicit differentiation meant by 2nd derivatives are just like in using diff    Like this  implicitdiff(y^2 = x^3+a*x+b, y, x, [x$n]) ??  idk 

I have the following ODE which I would like to solve with Maple rather than solving by hand (having solved this type of equation by hand many times now):

diff(f(x,y,z),z$2) = A - B*e^(-A*z)

where A and B are constants and I have indicated the second derivative of a function of x,y and z with respect to z.  

Dear maple users,
I am solving an ode problem with an analytical solution.
programming running properly, but my plot not exact with the already existing article plot. 
how to get the exact plot.

Thanking you.


N := 3;





dsolve(diff(f(x), `$`(x, 3)));

f(x) = (1/2)*_C1*x^2+_C2*x+_C3


Rf := 2*(diff(f[m-1](x), x, x, x))-(2*mh*mh)*(diff(f[m-1](x), x))+sum(f[m-1-n](x)*(diff(f[n](x), x)), n = 0 .. m-1)-bet*(sum(sum(2*f[m-1-n](x)*(diff(f[n-t](x), x))*(diff(f[t](x), x, x))+f[m-1-n](x)*f[n-t](x)*(diff(f[t](x), x, x, x))+x*(diff(f[m-1-n](x), x))*(diff(f[n-t](x), x))*(diff(f[t](x), x, x)), t = 0 .. n), n = 0 .. m-1));

2*(diff(diff(diff(f[m-1](x), x), x), x))-2*(diff(f[m-1](x), x))+sum(f[m-1-n](x)*(diff(f[n](x), x)), n = 0 .. m-1)-.2*(sum(sum(2*f[m-1-n](x)*(diff(f[n-t](x), x))*(diff(diff(f[t](x), x), x))+f[m-1-n](x)*f[n-t](x)*(diff(diff(diff(f[t](x), x), x), x))+x*(diff(f[m-1-n](x), x))*(diff(f[n-t](x), x))*(diff(diff(f[t](x), x), x)), t = 0 .. n), n = 0 .. m-1))


dsolve(diff(f[m](x), x, x, x)-CHI[m]*(diff(f[m-1](x), x, x, x)) = h*H*Rf, f[m](x));

f[m](x) = Int(Int(Int(CHI[m]*(diff(diff(diff(f[m-1](x), x), x), x))+2*h*(diff(diff(diff(f[m-1](x), x), x), x))-2*h*(diff(f[m-1](x), x))+h*(sum(f[m-1-n](x)*(diff(f[n](x), x)), n = 0 .. m-1))-(1/5)*h*(sum(sum(2*f[m-1-n](x)*(diff(f[n-t](x), x))*(diff(diff(f[t](x), x), x))+f[m-1-n](x)*f[n-t](x)*(diff(diff(diff(f[t](x), x), x), x))+x*(diff(f[m-1-n](x), x))*(diff(f[n-t](x), x))*(diff(diff(f[t](x), x), x)), t = 0 .. n), n = 0 .. m-1)), x), x)+_C1*x, x)+_C2*x+_C3


f[0](x) := 1-exp(x);



for m to N do CHI[m] := `if`(m > 1, 1, 0); f[m](x) := int(int(int(2*CHI[m]*(diff(f[m-1](x), x, x, x))-(2*h*H*mh*mh)*(diff(f[m-1](x), x))+h*H*(sum(f[m-1-n](x)*(diff(f[n](x), x)), n = 0 .. m-1)), x)-h*H*(sum(sum(2*f[m-1-n](x)*(diff(f[n-t](x), x))*(diff(f[t](x), x, x))+f[m-1-n](x)*f[n-t](x)*(diff(f[t](x), x, x, x))+x*(diff(f[m-1-n](x), x))*(diff(f[n-t](x), x))*(diff(f[t](x), x, x)), t = 0 .. n), n = 0 .. m-1))*bet, x)+_C1*x, x)+_C2*x+_C3; s1 := evalf(subs(x = 0, f[m](x))) = 0; s2 := evalf(subs(x = 0, diff(f[m](x), x))) = 0; s3 := evalf(subs(x = 1, f[m](x))) = 0; s := {s1, s2, s3}; f[m](x) := simplify(subs(solve(s, {_C1, _C2, _C3}), f[m](x))) end do:

f(x) := sum(f[l](x), l = 0 .. N);








Analytical solution approach:





Dear all

I hope to find the supremum of the sequence of the function using maple 18, but when I run the code there is no results

Many thanks




Please, I would like to ask your help with the following situation: 

If we have to solve in Maple a linear system like A.x =b, we employ the command Linsolve. However, how can I solve a system like x.A=b? 

The only method I know is to compute x=b.A-1. Is this an efficient method or there is a better one you recommend? 

Many thanks for your help.  


I want 15 digits after the dot, so I set Digits:=15

Setting j=3, x=0.01 I received



Doing the same in python I receive



Here are two sequences of commands that should give the same kind of plots. But, while the first one returns the expected display, the second doesn't (look to the labels on the histogram plot).

There is no hidden character that could explain this second display. Just that I proceeded this way:

  1. I executed the second sequence once.
  2. Then I told myself that displaying the histogram was superfluous, so I replaced its final semicolon with a colon.
  3. And I finally thought that, no, the histogram had a real interest and that I should display it; and I restored the semcolon (this is what you can see on the second sequence).
    And this add to the histogram the labels inherited from the second plot ...

Nothing dramatic here, but was the development team aware of this curiosity?



N := 10:
S := Statistics:-Sample(Normal(0, 1), 10)^+:
plots:-logplot(<  < [$1..N]> | S >, labels=["A", "B"]);




N := 10:
S := Statistics:-Sample(Normal(0, 1), 10)^+:
plots:-logplot(<  < [$1..N]> | S >, labels=["A", "B"]);






My question deals with plotting a function, namely, x(t), from lower to higher values of t.

To this aim, I solved a simple differential equation with given initial conditions and then plotted for the result.

As it is seen, maple starts from lower values of t to higher ones. However, is there a command through which I can reverse the plotting procedure?  

From the attached file, "A question on plotting", we see that the slope of the curve at t=2 is positive when we observe it from "left to right". However, this slope is negative once we start plotting from "right to left".

Is there any command with which I can start plotting from right to left? or change of axis origin?

I would appreciate for your kind help and support.

My best regards



(D@@2)(T)(0) + :-O(1) + 1/2*sin(1/2*Pi*T(x))^2 + 1/12*sin(1/2*Pi*T(x))*Pi*diff(T(x), x)*cos(1/2*Pi*T(x)) + :-O(2/3*(3/2*Pi^2*diff(T(x), x)*cos(1/2*Pi*T(x))^2*diff(T(x), x, x) - Pi^3*diff(T(x), x)^3*cos(1/2*Pi*T(x))*sin(1/2*Pi*T(x)) + sin(1/2*Pi*T(x))*Pi*diff(T(x), x, x, x)*cos(1/2*Pi*T(x)) - 3/2*sin(1/2*Pi*T(x))^2*Pi^2*diff(T(x), x, x)*diff(T(x), x))/Pi^2)


How can I remove the Big O terms from an expression?

Dear Maplesoft,

I inquired about this problem 4 years ago, but never really was able to fix my problem based on the response at the time. This has to do with plotting a parametrized curve where the parametrization involves the numerical solution of a condition. 

Consider the family of cardioids  
           "r = 1 + c*sin(theta), theta = 0 .. 2*Pi"
 in polar coordinates for 
                         "c = 0 .. 2.5"

In this example we find the polar angle 
 on the evolving family of cardioids where the slope is 
 as a function of the shape parameter 
 of this family by a procedure involving fsolve, but then try to plot the parametrized curve 
                  "r(c) = 1 + c*sin(theta(c))"
. No direct plotting method works because of evaluation order problems that I do not understand. The first plot is my desired plot but I used an ugly workaround to get the gray curve. Can you fix the direct method with delayed evaluation or something? 

Maplesoft Response. We don't help with this kind of problem. Ask MaplePrimes. 

This evaluation order problem pops up every time you want to plot a curve determined by numerically solving a condition, yet Maplesoft seems to think this is too sophisticated a problem to respond to. Naively trying to animate such curves always derails, so it reveals a weakness of Maple for users who do not belong to the elite class of Maple experts. I have been using Maple for a quarter century, and have made some pretty intricate animations and plots over the years, but always run up against this problem with animating numerically determined curves. Is there a Maple pro out there who can help?
Since I can't find a way to attach my Maple worksheet, here is the URL:


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