MaplePrimes Questions

 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 

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.

Good day,

Proc_-_Mapleprime.mw

I was wondering what goes wrong with the procedure I wrote.
I inserted a short example, otherwise I didn't know how to explain it.

When looking at the Maple sheet:
It concerns determining the eigenfrequency and then specify a factor to that eigenfrequency.
The first plot is the 'critical range expressed in FREQUENCIES'. I plotted this using a procedure.
Now in the second plot I converted the first plot, which is expressed in FREQUENCIES, to a certain critcal range in LENGTH.

Now my point is that I would like to view the reductiefactorvoetgangers(lengte) when I type in for example lengte:=22; but it gives an error. I don't understand why it does that.

In case of the first plot (expressed in FREQUENCIES), i can just simply fill in eigenfrequentiesysteem:=1.7 and then it gives me an answer for reductiefactorvoetgangerseigenfrequentie(eigenfrequentiesysteem) which is equal to 1 (which is correct).

So if anyone can tell me what I do wrong, I would appreciate.
Thank you

Greetings,
Frank 

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...

First 1530 1531 1532 1533 1534 1535 1536 Last Page 1532 of 2427