MaplePrimes Questions

I am trying to write my own procedure for the revised simplex method. I have defined my matrix and vectors and obviously my objective function I am trying to optimise. However I am having trouble with programming my entering and leaving variables.

For example I have the sequence 0, -20, 12. I need the smallest positive number i.e. 12 but how do I say this corresponds to the variable x[8] and thus in the simplex method the vector P[8] enters?

If you need any...

I got the range result as limit

ki:= t -> (sum(alpha1(S[j])*(exp(2*I*k*delta*t)-exp(S[j]*t))/((2*I*k*delta-S[j])*Q1(S[j])),j=1..3));limit(ki(t),t=infinity);
where : k,delta are constant and sum(alpha1([sj]),j=1..3) is number

the output is:

-.1294653014455612741589137389024249282843455188351695736221586639528345838460087707530271384645825938-0.8233085340292186435280681029574142108148445032573172243750416705060582056155292536631305980808392462e-1*I...

Hi, I am new to using maple and am having problems.

I have 3 values called R[1], R[2], and R[3] which correspond to 0, -20, 12 respectively. I would like to be able to find and output the smallest positive integer. Is there a maple function to do this? 

Thanks in advance for any help.

if i define

 

r[1]=4

r[2]=-7

r[3]=2

r[4]=-1

 

how can I find the number r that is the minimum, and define it as x?

so in this case, the minimum is -7 (r[2]), so i would want to define x as 2. 

p := (g+Delta*g*Zeta/omega-g*Zeta)*a[1]*b[2]+(g+Delta*g*Zeta/omega-g*Zeta)*a[2]*b[1]+(-Delta*g*Zeta/omega+g-g*Zeta)*a[2]*b[2]+(-Delta*g*Zeta/omega+g-g*Zeta)*a[1]*b[1]

q := factor(add(op(i, p), i = 1 .. 2))

q := g*(omega+Delta*Zeta-Zeta*omega)*(a[1]*b[2]+a[2]*b[1])/omega

here,throuth factor ,simplify the expression .yet,if i want the expression like this:

(g+Delta*g*Zeta/omega-g*Zeta))*(a[1]*b[2]+a[2]*b[1])

how do i?

thanks

Hello Maple experts,

I have some problems.  I can show a plot of f1, after assuming  n= 200 [Here x and y are positives and less than 1]

 

> f1 :=  (x, y,n) -> add(add(  `if` (.5 <= x+j*y+(1/n-(1/n)*x-(1/n)*y)*k and j*y+(1/n-(1/n)*x-(1/n)*y)*k < .5 , (1/(n+1)*(n+2))* factorial(k+j) *  factorial(n+1-j-k)/(factorial(k)*factorial(n-k)), 0), k = 0 .. n), j = 0 .. 1) :

> with(plots);

> listcontplot(...

How would I go about plotting four individual points in three dimensions, all on the same set of axes?  I'm trying to create a visual of a tetrahedron.  Thank you.

Hello. I am trying to do a project for school. But the following code is causing Windows 7(x64) to error. First, I get a message from mserver.exe saying: mserver has stopped working.

I click "Close the program" and I get "Kernel connection has been lost."

This is happening whenever I run the for loop in the attached code. I must get this fixed, people are counting on my code, but I do not know how to fix Maple. I am using Maple 14, build 479326 in Worksheet mode.

Hi. I'm new to Maple. I like the idea, but am rally confused by the interface. Can someone answer a few questions please?

How come this works, but displays wrong (the quotes display):

printf("%5a  %12a  %12a   %12a  %12a  %12a  %12a\\n", "-", "--", "--", "--", "--", "--", "--");

 

But this doesn't work (replaced quotes with apostrophe):

printf("%5a  %12a...

The following works:

  u+v*w;
  patmatch(%,a::name*b::name +c::name,'p');
  p;

                                 true
                        [a = v, b = w, c = u]

hi , can anyone tell me what's wrong with this!! please!

thank you in advance!

> crout := proc (A::array, n::integer)

local L, U, j;

L := matrix(n, n, 0);

U := matrix(n, n, 0);

L[1, 1] := A[1, 1];

L[2, 1] := A[2, 1];

U[1, 2] := A[1, 2]/L[1.1];

for j from 2 to n-1 do

what can I do I stuck in it,

f:=c1*a+c2*b:

where c1 and c2 is constant of three terms

a,b are variables in x

 

Hello everyone,

I have a great problem with maple (cause I'm a beginner)  My problem is When i write the following
for i from 1 to M do x[i]=evalf(a* cos(t[i])) end do;
I get a numbers for x[i], like t[1]=0, then x[1]=3.
until now no problem.
But when i calling x[1] in another place in the same file. i get x[1]=0.
Could any one help me.
Amr

did someone know the program of crout matrix decomposition?!


thank you in advance :)

Hello everybody,

 

I have a numerical list of points' coordonées defined as :

{P1,P2,P3, ...}

where P1 is defined by [r,theta,phi] radius, azimut, elevation.

Can I plot this in a cartesian coords whitout calculing X=r*cos()*sin() .... ?

Thank's

First 1929 1930 1931 1932 1933 1934 1935 Last Page 1931 of 2434