Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hi, I need to generate 100,000 numbers randomly (bounded by 0 and  t) and plot the distribution of the distance of two subsequent numbers. I tried it with a large array:

 

 

 

Is there any function that does this?

 

A:=<1,2,3,2,4,1,6,3,2,0,0>;

output: <0,1,2,3,4,6>

Hello there

How to solve a system of linear equations with variables that have discrete values?

Example:

a+b+c=1

a+d+e=2

b+d+f=2

c+e+f=1

suach that a=0 or 1, b, c, d, e, and f also can have only 0 or 1 as their possible values.

I tried, unsuccessfully OrProp (may be the syntax is wrong)

 

Any idea?

Thank you

Vick

 

 

 

Hello,

I need to program a procedure to get the elements of a vector and sum it but as symbols. e.g.

V:=<1,2,3>;
conv2symbol (V):

output should be:                  =1+2+3

I want to restore this as a text/symbol to use it on a plotting procedure.

How can I do this?

TIA and happy holidays

Hello,

I would like to use the ResponsePlot function from the DynamicalSystems package, but it doesn't work for me (it gives an error message see below):

restart;with(DynamicSystems);
tr:=1/(1+1.000000000*s/Pi);
sys1 := NewSystem(TransferFunction(tr));
PrintSystem(sys1);
MagnitudePlot(sys1);
vin := Sine(1, 2);
Tsim := 10;
ResponsePlot(sys1,vin,duration=Tsim,color=[red, blue],thickness=2);
 

I do an order as follows,

> restart;

Hi merry xmas and a happy new every1.

I am trying to code the cocktail sort algorithm into maple but having some difficulties.

i coded bubble sort but cnt seem to code the cocktail sort any help would be appricited.

 

restart:
l:=[5,4,3,2,1]:
for j from 1 to nops(l)-1 do:
for i from 1 to nops(l)-1 do:
if l[i] > l[i+1] then
d:=l[i]:
l[i]:=l[i+1]:
l[i+1]:=d:
fi:od:od:
print(l);
 

Dear everyone,

I would be vey glad if you could help me in this.

It seems a picture inserted or plot command generated is not movable in a document ?

If I shrink the picture,that will be in the center of the page,but this is not good when I should print the document.

can't be dragged to anywhere?

 

I have a set of 12 odes. I solve for the 12 dependent variables using dsolve, numeric and then plot their solutions using odeplot. When I omit my highly nonlinear elastic force terms, everything is ok. However, when I include the elastic force terms, dsolve seems to work fine and yield a result, but I cannot substitute the solution coming from dsolve,numeric back into the dependent variables. I get the message "global 'x' must be assigned to a numeric value before obtaining a solution".

Dear All,

I would appreciate you advice on the following problem. It is related to getting maple to write its output in a cirtain way which the user prefers.

 

If I ask Maple to:

solve((-q*N3*X3)/e3 = (q*N1*X1)/e1 + (q*N2*X2)/e2, X3);

 

it will produce:

X3 = -((N1*X1*e2 + N2*X2*e1)e3) / (e1*e2*N3)

I can see by inspection that the solution above is equivalent to:

X3 = (-(N1*X1*e2 + N2*X2*e1) / N3) * (e3/(e1*e2))

Which is the prefered way of writing this particular equation in my line of work.

I tried to maximize a nonlinear objective function by mapple 10 but I was not able to obtain non negative solutions. Procedure followed by me is as follows

F:=(-ln(1-s1*(a+beta)/(K-alpha))+ln(1+s1*(a+beta)/(alpha)))/(a+beta)+(-ln(1-s2*beta/alpha)+ln(1+s2*beta/(K-alpha)))/beta;

si:=K*(-(ln(1-s1*(a+beta)/(K-alpha)))/(a+beta)+ln(1+s2*beta/(K-alpha))/beta):

G:=-(-(K-alpha)*ln(1-s1*(a+beta)/(K-alpha))+alpha*ln(1+s1*(a+beta)/(alpha)))/(a+beta)^2:

theta:=-a*(-(K-alpha)*ln(1-s1*(a+beta)/(K-alpha))+alpha*ln(1+s1*(a+beta)/(alpha)))/(a+beta)^2:

Hi there,

 

Can you please help me to plot delay logistic equation for

dy/dt=y(t)*(1-y(t-1))
y(0)=1/2  ALSO  y(1)=1/2
where t=0..100

Thanks for help

 

There is some advice how to solve a cubic trigonometrically  here, but nothing presentable seems to appear out of it. Could someone please demonstrate how to do that with maple for a general (monic) cubic. Thanks.

I realized the other day that I had not mentioned the Threads:-Add, Threads:-Map, Threads:-Mul and Threads:-Seq functions.  These are parallel implementations of the standard Maple functions, add, map, mul and seq.  They expect the sam

First 1885 1886 1887 1888 1889 1890 1891 Last Page 1887 of 2246