Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

restart:with(geometry):with(plots): 
> 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.

Hii,

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.

 

Thanks

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

I want to ‘a0,a1,......an 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:

https://math.stackexchange.com/questions/3177491/how-to-solve-the-given-partial-differential-equation

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

Hi, 
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


 

restart:

anames(user);

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

f := a*x+b

a*x+b

(1)

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

a*x+b = b

 

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

 

0

(2)

anames(user);

b, g, f, a

(3)

additionally(b > a)

h := f=b:
simplify(h);
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

(4)

indets(g);
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}

(5)

lprint(indets(h))

{a, b, b, x}

 

# strange...

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

simplify(%);

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

 

-(b-b)/x

 

-(b-b)/x

(6)

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


EQUATION(3)
   POLY(6)
      EXPSEQ(4)
         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
 

 

dismantle(h)


EQUATION(3)
   POLY(6)
      EXPSEQ(4)
         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
 

 
 

 


 

Download MultipleAssumptions.mw

 

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);

0

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?

Hello, 

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

plot3d([cos(theta)*sin(phi),sin(theta)*sin(phi),cos(phi)],theta=0..2*Pi,phi=0..Pi,scaling=constrained,axes=boxed);

Thanks

[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?

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

 

So from this

https://www.maplesoft.com/support/help/maple/view.aspx?path=MaplePortal%2FTutorial2#bkmrk1

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.

Hello

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 

 

Thanks Dummy_5.mw

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.

Download Test.mw

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