Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

> S:=segment:L:=line:Per:=PerpendicularLine: 
> R:=5:xA:=0:yA:=0:point(A,xA,yA):xI:=R/3:yI:=0:point(I1,xI,yI): 
> circle(C,[A,R]): 

> quadri:=proc(t) 
> local xM,yM,xN,yN,xE,yE,dr1: 
> xM:=evalf(R*cos(t)):yM:=evalf(R*sin(t)):point(M,xM,yM):L(lMI,[M,I1]): 
> intersection('h',C,lMI,[M,N]):L(lAM,[A,M]):L(lAN,[A,N]): 
> Per(lME,M,lAM):Per(lNE,N,lAN):intersection(E,lME,lNE): 
> S(sAM,[A,M]):S(sAN,[A,N]):S(sME,[M,E]):S(sNE,[N,E]): 
> dr1:=draw({lMI(color=blue),sAM(color=black),sAN(color=black), 
> sME,sNE}): 
> display({dr1}): 
> end: 
> dr:=draw({C},view=[-6..17,-10..6]): 
> display([dr,quadri(0.7),quadri(1),quadri(1.2)],view=[-6..17,-10..6]); Thanks you.


I am using a command -NLPSolve(Ecost1, Q = 10 .. 20, initialpoint = {Q = 10}, assume = nonnegative, maximize = false). I am looking for solution that find the Q value at the minimum value of Ecost1. But Ecost1 should not go below 0. 

and also I am getting an error -Warning, initialpoint option ignored by solver.

Kindly tell how to deal with these issues.



Hi, How can I  to assign a sequence number once. For example,

I want to ‘a0,a1, is assigned to variables x0 , x1,......, xn,’

I used command line as following :

seq(x[i], i = 1 .. 5) := [1, 2, 3, 4, 5],error as follows,‘Error, invalid left hand side in assignment’
Any  suggestion?


I need help on solving the following PDE by Maple:

I couldn't write the partial differential equation in Mapleprimes so provided the link from somewhere else. Please help. Thank you.

f :=2*sin(x^2/2)-sin(1*x/2)^2 In the interval [1,2] Find to the 10 significant figures the value of the second derivative at turning point

I'm very stunned by the results displayed in the worksheet below.
It seems that adding extra assumptions on a variable already constrained with "assume" has disturbing side effects ?

Here is a simplified worksheet that exhibits the phenomenon.
Basically I want to solve the equation a*x-b =b with respect to x.
In a first step I set assumptions on a and b and Maple returns x=0, as expected.
Next I add a new condition on b and ask Maple to solve the equation again. I intain this strange result: x=(b~ - b~)/a~.

Am I doing something wrong?

Thanks in advance




assume(a > 0):
assume(b > 0):

f := a*x+b



g := f=b:
solve(g, a);

a*x+b = b


Warning, solve may be ignoring assumptions on the input variables.





b, g, f, a


additionally(b > a)

h := f=b:
solve(h, a);

a*x+b = b


Warning, solve may be ignoring assumptions on the input variables.


anames(user)  # additionally(b > a) doesn(t introduce a new variable

b, h, g, f, a


indets(h);  # why do I have b~ twice ?
            # This is probably the reason why solve(h, a) doesn't work

{a, b, x}


{a, b, b, x}



{a, b, b, x}


# strange...

solve(h, indets(h)[1]);


Warning, solve may be ignoring assumptions on the input variables.






# remark, dismantle explains nothing about the distinction between b~ and b~

         NAME(4): a
         NAME(4): b
         NAME(4): x
      DEGREES(HW): ^2 ^1 ^0 ^1
      INTPOS(2): 1
      DEGREES(HW): ^1 ^0 ^1 ^0
      INTPOS(2): 1
   NAME(4): b



         NAME(4): a
         NAME(4): b
         NAME(4): x
      DEGREES(HW): ^2 ^1 ^0 ^1
      INTPOS(2): 1
      DEGREES(HW): ^1 ^0 ^1 ^0
      INTPOS(2): 1
   NAME(4): b






binomial(x, -1) should be 0 for any x which is not a negative integer.

When assuming x to be a positive integer, the command binomial indeed yields 0:

assume(x, posint); binomial(x, -1);


but when assuming x to be non-integer, the binomial command seems to ignore the assumption:

assume(x, Non(integer)); binomial(x, -1);
binomial(x, -1)

How to force the binomial command to take into account all assumptions?


I hope you are doing well. I have the followig equation which I want to solve w.r.t.o (x). Maple took more than 12 hours for evaulation and still no solution. What could be the reason? Could you please help. 



(.5*(-sqrt(1/(.5*(sqrt(2*x)-sqrt(2*(1-x)))^2)+1)+1/(.5*(sqrt(2*x)-sqrt(2*(1-x)))^2)+1))/(2/(.5*(sqrt(2*x)-sqrt(2*(1-x)))^2)+2)+(.5*(-sqrt(1/(.5*(sqrt(2*x)+sqrt(2*(1-x)))^2)+1)+1/(.5*(sqrt(2*x)+sqrt(2*(1-x)))^2)+1))/(2/(.5*(sqrt(2*x)+sqrt(2*(1-x)))^2)+2) = (1/2)*sqrt(2)*(2*(-2^1.5*sqrt(.5*sqrt(2*(1-x))^2)/(2*sqrt(2*sqrt(2*(1-x))^2*.5+1))+sqrt(.5*sqrt(2*(1-x))^2)/(2*sqrt(.5*sqrt(2*(1-x))^2+1))+.5)-sqrt(.5*(sqrt(2*x)+sqrt(2*(1-x)))^2)/(2*sqrt(2*(sqrt(2*x)+sqrt(2*(1-x)))^2*.5+1))-sqrt(.5*(sqrt(2*x)+sqrt(2*(1-x)))^2)/(2*sqrt(.5*(sqrt(2*x)+sqrt(2*(1-x)))^2+1))-.5+sqrt(.5*(2*sqrt(2*x)+sqrt(2*(1-x)))^2)/(2*sqrt(2*(2*sqrt(2*x)+sqrt(2*(1-x)))^2*.5+1))+sqrt(.5*(2*sqrt(2*x)+sqrt(2*(1-x)))^2)/(2*sqrt(.5*(2*sqrt(2*x)+sqrt(2*(1-x)))^2+1))+.5+(sqrt(.5*(sqrt(2*x)-sqrt(2*(1-x)))^2)/(2*sqrt(2*(sqrt(2*x)-sqrt(2*(1-x)))^2*.5+1))+sqrt(.5*(sqrt(2*x)-sqrt(2*(1-x)))^2)/(2*sqrt(.5*(sqrt(2*x)-sqrt(2*(1-x)))^2+1))+.5)-sqrt(.5*(2*sqrt(2*x)-sqrt(2*(1-x)))^2)/(2*sqrt(2*(2*sqrt(2*x)-sqrt(2*(1-x)))^2*.5+1))-sqrt(.5*(2*sqrt(2*x)-sqrt(2*(1-x)))^2)/(2*sqrt(.5*(2*sqrt(2*x)-sqrt(2*(1-x)))^2+1))-.5)*c

As a challenge problem.  At what x,y coordinate does circle B (radius r) make contact with circle A (radius R)?  Let's suppose the center of circle A is at (0,0).  The height circle B sits at, is d above the 0 x-axis. 


I'm trying to create an ellipsoid using spherical coordinates.

                   "x^2 + y^2/4 + z^2/9 = 1" how can I enter this?

This is what I have , but shape show up really crazy



[An edited and reposted version of this Question, which has subsequently been deleted, specifically asked that the plot be done by making a small adjustment to Maple's spherical coordinates. The deleted version also named the ellipsoid E, a detail which is important for understanding correctly the OP's subsequent integration Question. --Carl Love acting as a Moderator]

I have a system of 3 equations in four variables (x, y, s, t) that I would like to solve (numerically).  I would like to obtain a plot in 2 dimensions (x,y) of the curve of solutions. I'm not so bothered about what the corresponding (s,t) values are.  The equations are huge, taking up many screens worth and of very high degree.  What is the best way in Maple to solve / draw the plot numerically?

The integral int(x, x);
Error, missing operator or `;`


So from this

I tried to switch between both modes, but I get the error above. Why does it not work? Do I need to consider something else? I'm switching with F5. The text is red and math is 2d math black.



Also the [CTRL]+[=] doesn't work in this german version, since I would need to press

[CTRL]+[SHIFT]+[=] which doesn't work.


I am looking for the table containing the value m,vv and mm. and these values I can easily copy and paste in excel sheet. 

Plz suggest commands 



Given the following functions, graph them and identify relative and absolute extrema (if any).

f(x)=3x^3-2x^2+5x-7     [-3,6]

I'm doing a statistic analysis on a lot of data which i have imported from Excel into a matrix. I've got about 2880 data points and i'm trying to use regression and its giving me an error which i do not know how to deal with.

How would i execute the following calculate? I know i could use the statistics package but i want to do with with the formula. I'm trying to find the standard deviation. Look at the attached picture so see. I've also attached a copy of the calculations in maple format.


Also another little side thing, but not necessary. Is it possible to have a matrix with empty spaces in it and return it?

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