Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I have two vectors ( A=(1,2,3,4,5,6,7,8), B=(2,7,8) ) and I would like to compare them to see if the elements in B are also in A, and then if they are I would like to remove them from A so I would be left with the following A=(1,3,4,5,6). Is this possible and if so how?

Any help is much appreciated



Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/ad_plot_for_derivati.mw .

Download ad_plot_for_derivati.mw

I cannot get Maple 9 Student Edistion to run in Windows 7. I've tried running it in compatibility mode, but it still doesn't work. Are there any software updates or patches available? Is there another Solution?

Hi. Why can't I print landscape from Maple?

I am trying to print my homework, which has some wide tables. The printer I'm sending to has landscape mode, and documents from other programs print landscape. But when I print from Maple, and select landscape, it comes out in portrait.

I am printing from Maple 13. The worksheet was created in Maple 14. I can print to PDF from Maple 14, but that comes out portrait also.

Thanks in advance.

-Jeff

Hi there, I'm trying to write an Algoritm to solve a Stable Marriage Problem and have written what I think should work but it doesn't.  Any hints or tips on how to fix it would be greatly appreciated!

 

stableMatching:= proc(M,W)
 local n,i,j,k,c,d,g,Mm,Ww,s:
    g:=0:
    c:=0:
 with(ArrayTools):
    n:=max(Size(M)):
       Mm := Array(1..n): #stores...

The attached file demonstrates that a substitution into a piecewise function appears (sometimes) to execute the wrong half of the function.

If I use "assuming" instead of substitution, the assumption appears to get through to the piecewise function, but only sometimes.

I don't understand why this happens. Can anyone clarify what is going on? See below.

Thank you.

 

______________________________________________________________

Dear friends,

 

I can compute,  with Maple 14, summe1:

> summe1= sum( sum( (`if`(1 < x , 1, 0))*   x*j, x=0..2), j=0..2);

 

However, when I modify  summe1 to summe2, I get an error message:

 

> summe2= sum( sum( (`if`(1 < x+j , 1, 0))*  (x*j), x=0..2), j=0..2);

 

> Error, (in eval/if) cannot determine if this expression is true or false: 1 < j

I want to mix nicely formatted text and code, with the ability to hide the code and variable scoping

Something like

Some blah blah
{ First part of code snippet with scope 1
More blah blah
Second part of code snippet with scope 1}
Yet more blah blah
{ Second code snippet with scope 2 }

In Mathematica I would use the "Module" keyword, but there does not seem to be an equivalent in Maple, and I am not sufficiently...

I am new to using maple and I have an equation (z:= 7*x[1]+11*x[3]-10*x[4]+26*x[6]) which i would like to turn into a sequence of coefficient of x's i.e (7,0,11,-10,0,26). How would I go about doing this?

Hi everybody;

I have question about my calculation. my questions maybe looks like very simple.

>restart:
>lambda:=-1; alpha:=0.5;  N:=1;  m:=ceil(alpha);

                             lambda := -1
                ...

restart; with(Physics); Setup(mathematicalnotation = true):

am := Annihilation(N); ap := Creation(N)

Setup(op = {b[1], b[2], b[3]})

alg := seq(%Commutator(ap, b[i]) = 0, i = 1 .. 3), seq(%Commutator(am, b[i]) = 0, i = 1 .. 3), %Commutator(b[1], b[2]) = b[3], %Commutator(b[1], b[3]) = -Physics[`*`](2, b[1]), %Commutator(b[2], b[3]) = Physics[`*`](2, b[2])

q := %Commutator(Physics[`.`](ap+am, b[2]), b[1])

p := expand(q)

ans := sort(p, [a, b])

Hey folks I have a question about how to use solutions from fsolve in future calculations without copying and pasting.

 

Here is the code...

 

Order := 13:
f := x -> -x + x^2 - x^3 + add(a[i]*x^i,i=4..11):
A := n -> coeff(series(f(f(x)), x), x^n):
fsolve({seq(A(k) = 0, k=5..12)}, {seq(a[j], j=4..11)});

 

Now this gives values of a[k] from a[4] to a[11] but then if I were to type a[5] in the...

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.

First 1748 1749 1750 1751 1752 1753 1754 Last Page 1750 of 2224