Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Doing a pointplot([x1,...,xn],[y1,...yn]) is no problem but I have lists [y11,...y1n] [y21,...,y2n] ... [ym1,...ymn] each be plottet at [x1,...,xm] in 1 plot.

That means:

plotting 

[y11,...y1n] at x1

[y21,...,y2n] at x2

.

.

.

[ym1,...ymn] at xm

What is the easiest way to implement this?

 hi everyone,   

I have a list of coordinates  and would like to sort them so that in the new order, the last coordinate will be the first coordinate and the first coordinate will be the first: 

   for example:  

  P:=array([[1,4],[2,3],[3,2],[4,1],[6,5],[6,1]]):   

should sort to  

  P:=array[ [6,1], [6,5], [4,1],[3,2],[2,3],[1,4]]  

Two examples:

for i in {1, 2/0, -3, 1/4, 5} do

if i::posint then print(i)  fi;

od;

       Error, numeric exception: division by zero

 

select(x->is(x::posint), {1, 2/0, -3, 1/4, 5});

       Error, numeric exception: division by zero

 

How to avoid interruption of the program in such cases?

Hi, this question requires the use of with(geom3d): package and i don't know how to go about answering it.

Hello dear,

I want to plot a piecewise function.

The code is 

restart:with(plots):

lambda0:=PL-R3*x;

Psi0:=PL+R3*S0*(R1-1)-R1*R3*x;

S0:=(Q-1)/Q;

P:=piecewise(x<S0,lambda0,x>S0,Psi0);

R3=-5,k=4,R1=0.0006,Q=1.2

I want to plot P vs x (0..1) vs PL (0..1).

Thanks

I am trying to illustrate the effects of using finite-precision arithmetic on solving certain linear systems using elementary row operations. I am able to set Digits to the desired level and use the RowOperation command for each individual row operation. I would like to be use say, ReducedRowEchelonForm or LinearSolve with the desired level of precision. Is there anyway to force Maple to use whatever number of digits when using commands like ReducedRowEchelonForm or LinearSolve?...

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. 

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