Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Sir please help me to solve following system of non linear equation, 



How I can get integral by part.

I want to calculate these integral.

Thank you



How I can take Laplace Transform from equation.



Dear all,
I found error something like this
"Error, (in Optimization:-LPSolve) maximal depth, 263, of branch and bound search is too small; use depthlimit option to increase depth"

How to use depthlimit option?
Could anyone give an example?
Thank you.


The worksheet below rolls an ellipse along the y axis with constant energy.

How can the physics be enhanced to roll the ellipse along a non-linear curve (e.g. a sine curve) with constant energy?


restart; _local(gamma); _local(I); _local(pi)



Warning, The imaginary unit, I, has been renamed _I


# Set up numerical values for all problem parameters
  params:=[       psi=0.142,        mu[1]=0.112,      phi=0.4e-3,
                 mu[v]=0.002, beta[o]=0.081,  M[h]=10,
            omega=0.2e-2,     eta=0.5e-1, mu[e]=0.092,
                pi=0.598e-2,    beta[*]=.5,      eta=0.213,

Error, `*` unexpected


# Define main function
  R:= sqrt((psi+mu[1]+phi)*(mu[1])^(2)*mu[v]*psi*beta[o]*(M[h])^(2)*(omega+mu[1]+eta)*mu[e]*pi*beta[*]/(psi+mu[1]+phi)*(omega+mu[1]+eta)*mu[v]*mu[e]*(mu[1])^2);

Error, `*` unexpected


# Compute "all" derivatives and evaluate numerically.
# For the purposes of this calculation "all"
# derivatives, means the derivatives with respect to
# every variable returned by indets(R, name)
# Output a list of two element lists where each of
# the latter is
# [ varName,
#   eval( diff( R, varName), params )
# ]
 [ seq( [j, eval( diff( R, j), params )],j in indets(R, name))];

Error, invalid input: eval received params, which is not valid for its 2nd argument, eqns


# Compute all "sensitivities" (where the sensitivity
# is as defined in Rouben Rostamian response to the
# OP's earlier post) and evaluate numerically.
# For the purposes of this calculation "all" sensitivities
# means the sensitivity with respect to every variable
# returned by indets(R, name)
# Output a list of two element lists where each of
# the latter is
# [ varName,
#   eval( varName*diff( R, varName)/R, params )
# ]
  seq( [j, eval( j*diff( R, j)/R, params )],j in indets(R, name));

Error, invalid input: eval received params, which is not valid for its 2nd argument, eqns






Here are two matrices:

Ts:=matrix([[cos(omega*t), cos(omega*t-2/3*Pi), cos(omega*t+2/3*Pi)], [sin(omega*t), sin(omega*t-2/3*Pi), sin(omega*t+2/3*Pi)],[1/2, 1/2, 1/2]]);

Then, if I attempt this operation, 'simplify(multiply(Ts, Xin));', this becomes the result:

Matrix(3, 1, [[cos(omega*t)*cos(omega*t+alpha)+cos(omega*t+(1/3)*Pi)*cos(omega*t+alpha+(1/3)*Pi)+sin(omega*t+(1/6)*Pi)*sin(omega*t+alpha+(1/6)*Pi)], [sin(omega*t)*cos(omega*t+alpha)+sin(omega*t+(1/3)*Pi)*cos(omega*t+alpha+(1/3)*Pi)-cos(omega*t+(1/6)*Pi)*sin(omega*t+alpha+(1/6)*Pi)], [(1/2)*cos(omega*t+alpha)-(1/2)*cos(omega*t+alpha+(1/3)*Pi)-(1/2)*sin(omega*t+alpha+(1/6)*Pi)]])

However, if I attempt to reduce each row, the previous result is reduced much further. 

For example, this shows the expand operation applied to the first row and its result.  

expand(3*cos(alpha)*(1/2)+(1/2)*cos(2*omega*t+alpha)-(1/2)*sin(2*omega*t+(1/6)*Pi+alpha)-(1/2)*cos(2*omega*t+(1/3)*Pi+alpha), trig);


Is there any way to reduce the entire matrix in a similar way, instead of using this element by element operation?


Is this an expected behaviour for simplify/size

I was simplifying a result from pdsolve, but did not check that the solution was null or () before calling simplify.

It turns out that  simplify((),size)  returns size for this. I find this is very strange.

I would have expected it to return ().

I can fix this by checking that sol is not null before calling simplify ofcourse. But the question is, why does simplify((),size) return size? What is the logic for this? From help:

The simplify(expr, size) calling sequence is used to attempt simplifying the expression size, performing only collections and simple decomposition of fractional powers in the coefficients - sometimes taking advantage of linear factors when they exist. No other mathematical simplifications of the expression or its subexpressions is performed. These operations, while simple and with low computational cost, may remarkably structure the expression and reduce its size.

is it possible what happens is this: becuase "sol" was null, the call simplify(sol,size) has actually become simplify(size) and the result is size.  So because the first slot in the call was (), it was ignored during the call and the first parameter became size insteal of sol?

Maple 2019 on windows 10.


In the attached file, first, I use dsolve to analytically solve a system of equations. Maple solves it easily.

But, when I change the frequency (in the Sine function) of the second equation, Maple cannot solve it. Why?


i have an ode with its BCs,i defined those and tried to solve but it seems has problem,would you please see my code ?

plz see attached

Right now I am going through Bishop's ML book and as a part of the first exercise I need to define a polynomial that goes like this.

y(x,w) = w_0 + w_1 * x + w_2 * x^2 ... + w_m * x^m = sum (k=0 to m) w_k * x^k

Here is how I've written it out in Maple.

f := proc (x, w) options operator, arrow; sum(w[k]*x^k, k = 0 .. nops(w)) end proc

Sorry for the raw code, Maple Math won't accept the code I've written as a valid Maple expression for some reason. When I try to use this I get an error that says too many levels of recursion.

f(2, [a, b, c]);
Error, (in limit/mrv/limsimpl) too many levels of recursion

Where am I going wrong here?

I found that numerical integration of maple is a bit slow in many cases. Is there any external library for integration in maple. Please write how to use it as well. Thank you.

The following worksheet was run from my desktop and finds both currentdir() and interface(worksheetdir) to be "C:\Users\dharr\Desktop" (either from opening it within Maple 2017 or double-clicking on it). The startup code is


But if I load it from Maple Player 2018, then both currentdir() and interface(worksheetdir) are "c:\program files\maple player".

It means an interactive application that runs in Maple won't run in Maple Player.

Is this a bug or deliberate strategy to make it harder to open datafiles within Maple Player?

(Can't load the worksheet contents right now)


I'm really after a simple workaround for a file open dialog with embedded components - any suggestions?

2 3 4 5 6 7 8 Last Page 4 of 1531