Gregoire le Gros

0 Reputation

2 Badges

15 years, 350 days

MaplePrimes Activity


These are replies submitted by Gregoire le Gros

Thanks Christopher2222 !

Thanks Christopher2222 !

It is not true then to say that

for x in mylist do convert(mylist[x],binary) end do

takes each ( x'th) element of mylist and converts it to binary ?

And so x is not incremented from 1 to the end of the list ,thus in mylist:=[1,2,27]

mylist[1]=1

mylist[2]=2

mylist[3]=27

 

It is not true then to say that

for x in mylist do convert(mylist[x],binary) end do

takes each ( x'th) element of mylist and converts it to binary ?

And so x is not incremented from 1 to the end of the list ,thus in mylist:=[1,2,27]

mylist[1]=1

mylist[2]=2

mylist[3]=27

 

Yes , the line

for x in mylist do convert(x,binary) end do

does what I want although I dont understand why the two-digit intgers are causding the subscript error. Anyway I am now able to proceed with the work. I appreciate the varied ways in which the same result can be obtained. Thanks.

Yes , the line

for x in mylist do convert(x,binary) end do

does what I want although I dont understand why the two-digit intgers are causding the subscript error. Anyway I am now able to proceed with the work. I appreciate the varied ways in which the same result can be obtained. Thanks.

Page 1 of 1