Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

HelloI have Mathematica code(notebook) I want to convert it to Maple code (worksheet)
 Thanks 

Hi

It's been 1 and 1/2 months since updates for the Maple Physics package have been distributed in the Maplesoft webpage "Maple Physics: Research & Development".  The number of Mapleprimes Physics posts that got rapidly addressed in this way is already large, some of them are listed here.

The experience has been great. Suggestions are implemented and problems are fixed in a couple of days since they were posted here, and the changes are made available to everybody right away. This is moving the focus of developments into the topics people are actually working on, with feedback and related downloadable updates happening every week.

The recent Physics updates are mostly related to quantum mechanics, an advanced topic, but part of the resulting functionality is interesting for algebraic computations in general. To mention but one: the "automatic combination of products of powers of same base" is now optional.

Recalling, by default, in Maple, if you enter xn xm, in order to receive x(n+m). you need to use the combine command (the same happens with products of exponentials). The idea behind the Maple approach is to give you more control over the steps. On the other hand, depending on your problem, the automatic combination of powers of the same base is a desired automatic simplification - this is for instance the Mathematica approach.

In today's update of Physics, a new Setup option, 'combinepowersofsamebase', is implemented, so that this automatic simplification is now optional. If set to true (> Setup(combine = true))you enter xn xm or exp(A) exp(B) and you respectively receive x(n+m) and exp(A+B). Being able to turn this automatic simplification ON and OFF comes in handy in varied situations.

Those more familiar with noncommutative objects (e.g. Matrices), also know that the combination of exp(A) exp(B) is not valid when the exponents A and B do not commute, unless A and B commute with their commutator AB - BA, in which case the combination can be done using Glauber's formula (also related to Hausdorff's formula). All of these cases have been implemented too.

In summary, in the latest update of Physics the combination and expansion of powers and exponentials using combine and expand now takes into account the noncommutative character of the exponents and the value of their commutator, and there is the option of having this combination happening automatically, for both noncommutative and commutative algebraic objects in general.

Other relevant changes more related to Physics are described in the PhysicsUpdates.mw distributed inside the zip that contains the updated Physics.mla linked in the "Maple Physics: Research & Development" webpage.

The line continuation character when programming in Maple is the backslash `\`. When using the new Maple IDE within Eclipse, the backslash `\` is not recognized as the line continuation character and causes syntax checking errors. The code within Maple IDE compiles correctly with this line continuation character as you'd expect.

Does anyone know how to add syntax support for line continuation `\` within the new Eclipse Maple IDE?

Example:

tTable := (...

Now I have written this for loop just intuitively but unfortunately it doesnt work:

x(0):=0.5

for N from 1 to 100 do

x:=proc(n) option remember; eval(r*x(n-1)*(1-x(n-1)),r=4/(100)*N) end proc;

l(N):=[seq(x(n),n=20..100)]

end:

What's the specific problem maple has?

 

Edit: problem solved: 

for N from 1 to 100 do

x:=proc(n) option remember; eval(r*x(n-1)*(1-x(n-1)),r=4/(100)*N) end proc;

Hey guys,

I have the following problem:

I would like to know whether the derivative (e) is negative (given certain assumptions). 

e := diff(((d1-pfw1*Kw-pfs1*Ks-1/3*(d1-pfw1*Kw-pfs1*Ks+d2-pfw2*Kw-pfs2*Ks+d3-pfw3*Kw-pfs3*Ks))*(pf1w-1/3*(pfw1+pfw2+pfw3))+(d2-pfw2*Kw-pfs2*Ks-1/3*(d1-pfw1*Kw-pfs1*Ks+d2-pfw2*Kw-pfs2*Ks+d3-pfw3*Kw-pfs3*Ks))*(pf2w-1/3*(pfw1+pfw2+pfw3))+(d3-pfw3*Kw-pfs3*Ks-1/3*(d1-pfw1*Kw-pfs1*Ks+d2-pfw2*Kw-pfs2*Ks+d3-pfw3*Kw-pfs3*Ks))*(pf3w-1/3*(pfw1+pfw2+pfw3...

I have no idea about how to go about this question, any help is appreciated thanks.

Bonjour,

L'expression

L'exprission kw ci-dessus est une procédure en polynôme Pol de variable "p". Est-il possible de simplifier la valeur k:=kw(Pol)? Sur Mon portable, à certain moment de calcul, je vois que maple est presque bloquer.

#=============================================================:

> restart:
> with(LinearAlgebra):
> kw:=proc(Pol)    
> local a0,a1,a2,a3,R,alpha0,alpha1,alpha2,k:



 

``

Hi, 

The maple 16 installed on my win7 system does not work because its gui worksheet does not accept any symbol input (except the plus sign).  For example, the cursor become frozen once a minus sign is input. The classical worksheet works well. 

On the test I had today I was asked to find the derivative of x^3+3*cos(x) using the definition of a derivative. The (f(x+h)-f(x))/h type.

So i set my function and then used the definition and then tried to simplify. Unfortunately the bottom h is still there so when I try to evaluate the function when h=0 it returns an obvious problem. It can't divide by zero. Usually when I do this the h on the bottom will be canceled out, but it wouldn't do it for this one. Does...

hello,

i know that to define a complex number z = a+bI

 

now i need to know how to define a complex number in 3d like f= fx i + fy j + fz k

Hello All 

I looking to write Maple code procedure to solve this equation 

restart;
with(PDEtools):
with(plots):
with(LinearAlgebra):
pde := diff(psi(t,x),t,t) - diff(psi(t,x),x,x) + V(x)*psi(t,x);

where V(x)->x^2;

I have to use this stencil 

u[i+1,j]=-u[i-1,j1]+(1-1/8*h^2*v[i-1])*u[i,j-1]+(1-1/8*h^2*v[i+1])*u[i,j+1]; where i is spatial step and j is time step

Thanks 

 

Hello,
I have a question concerning the change of the results of Maximization procedure and it will be much appreciated if you could help me.
The case is: I need to find the maximum of a function (call if f(t)) given a range of values of another function (call it g(t)).Both sets of parameters are the same. I use "Maximize" command, but I need to plot the the results on (f,g) plane afterwards. How could I change the Maximization output in order to have only objective function...

int(y^2/2 - lambda*(u*diff(y,t)-diff(u,t)-a), t);

 

with(Physics):

diff(y(t)^2/2 - lambda(t)*(u(t)*diff(y(t),t)-diff(u(t),t)-a), u(t)); # u -> something

 

diff(lambda(t),t) disappear

 

should be

diff(lambda(t),t)+Physics[`*`](lambda(t), diff(y(t), t))

 

diff(y(t)^2/2 - lambda(t)*(u(t)*diff(y(t),t)-diff(u(t),t)-a), y(t)); # y -> something

 

u*diff(lambda(t...

I would like to take the sin of a procedure, but it keeps giving me an error. Is it possible at all, or should I rewrite it into a matrix?

like this: sin(proc(x)...end proc)

First 1419 1420 1421 1422 1423 1424 1425 Last Page 1421 of 2224