Sini

10 Reputation

2 Badges

14 years, 146 days

MaplePrimes Activity


These are questions asked by Sini

Hi,

    I have this problem and I cannot find a way to perform this search that I want it to. 

I have a set consisting of integers and fractions.  What maple code can I use to select only the integers out of this set.

 

For example:

A:={1,1/2,9,5/2,6/4,8,10,11};

I want to choose only the integers out of this set...so I need to obtain a set with D:= {1,9,8,10,11}.

 

How do I do so?

Hi there....

I have a set P={4,5,6,7,12,14,15}

in order to create permutations of the numbers in set P into sets of 3 I did the following:

with(Statistics):

>P={4,5,6,7,12,14,15};

> O := combinat[permute](P, 3); 

But this does not produce permutation of the same number in a set as the integers in P can be repeated more than once....for example {4,4,4} or {15,15,15}?

How can I do so?

Any help will be appreciated

Hi,

I am trying to expand the following into a polynomial on maple:


1/((1+x)*(1+x^2)*(1+x^3)*(1+x^4)*(1+x^5)*(1+x^6)*(1+x^7)*(1+x^8)*(1+x^9)*(1+x^10))

to get  1 + x + 2 x^(2)+ 3 x^(3)+ 5 x^(4)+ 7 x^(5)+ 11 x^(6)+ 15 x^(7)+ 22 x^(8)+ 30 x^(9)+ 42 x^(10)...  

I tried to use the expand() code...

Hi there,

            Basically i performed some calculations on maple and obtained a set A with about 8000 integer outcomes.

Im trying to create a loop that counts how many times there is an outcome of the integer 70 out of the 8000.

So far I have created the following:

A:=[10,20,..........]

s:=0

if A=70 then do s=s+1 end;

But this is not working

Any help will be appreciated

Hi there,

I need to create permutations of this given set Z:=[2,5,7,8,10] with Maple and substitute these numbers in a given polynomial. 

To create the permutations i did this on maple:

> Z:=[2,5,7,8,10];

> C := combinat[permute](Z, 3):

how do I labelled the outcome of the permutations "C" as [a,b,c] so that I can then subtitute each permutation into the polynomial f:=4a+2b+c?

 

Thankyou for any help!

:)

Page 1 of 1