Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

hmmmm.....

for i from 1 to 4 do
   evalf[i](S)
end do;

        6. 1012
        5.9 1012    
        6.06 1012
        6.080 1012

That is an odd one.

I noticed that too, however I couldn't say anything about it.  

I have also noticed some long time mapleprimers have disappeared off the posting map, others have reduced their postings.  One person mentioned he would stick around to see how the new mapleprimes site worked and I haven't seen him post since the beginning of June. 

Yes but you're telling maple to do mylist[27] not mylist[3]

Take a closer look at what maple is doing

for x in mylist do
   x;
end do;

          1
          2
          27

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

simply translates to

convert(mylist[1],binary)
convert(mylist[2],binary)
convert(mylist[27],binary)

Hopefully this clears things up for you. 

You could have also used

for i from 1 to nops(mylist) do
  convert(mylist[i],binary);
end do;

 

Yes but you're telling maple to do mylist[27] not mylist[3]

Take a closer look at what maple is doing

for x in mylist do
   x;
end do;

          1
          2
          27

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

simply translates to

convert(mylist[1],binary)
convert(mylist[2],binary)
convert(mylist[27],binary)

Hopefully this clears things up for you. 

You could have also used

for i from 1 to nops(mylist) do
  convert(mylist[i],binary);
end do;

 

@John May thanks that makes things a little more efficient.

Although this does not directly address this specific question, I'm just showing a simple way to select a column from a Matrix

M:=Matrix(1..5,1..5,rand(1..9))

                                                [7,6,2,4,6]
                                                [5,1,8,5,2]
                                      M:=    [2,4,8,3,9] 
                                                [2,8,9,1,6]
                                                [7,7,3,3,5]

M(..,4)

                                    [4]
                                    [5]          
                                    [3]
                                    [1]
                                    [3]

Although this does not directly address this specific question, I'm just showing a simple way to select a column from a Matrix

M:=Matrix(1..5,1..5,rand(1..9))

                                                [7,6,2,4,6]
                                                [5,1,8,5,2]
                                      M:=    [2,4,8,3,9] 
                                                [2,8,9,1,6]
                                                [7,7,3,3,5]

M(..,4)

                                    [4]
                                    [5]          
                                    [3]
                                    [1]
                                    [3]

Add a little animation to make it more interesting.

animate(matrixplot, [aa*b, axes = boxed, shading = zhue, orientation = [-160, 57], heights = histogram, projection = .5], b = 0 .. 1)

Increase the number becomes interesting but also eats up the memory I increased the number to 300 and it took over 5 minutes and 290 Mb of memory to complete on my P4 1.4 GHz laptop. 

It appears that Maple will not allow you to reduce the font size below 8. 

As far as I know all word editors allow the user to type in a font size from 1 to some maximum allowable limit.  I'm not sure why Maple did not implement this option?

It appears that Maple will not allow you to reduce the font size below 8. 

As far as I know all word editors allow the user to type in a font size from 1 to some maximum allowable limit.  I'm not sure why Maple did not implement this option?

Okay, yes, I see the space is still there.  But we can also modify the font size.

If we could reduce the font size down to 1 it would almost achieve compressing the white space.  Unfortunately I cannot modify the font size to below 8.  So almost there maybe there's a workaround for that?

Okay, yes, I see the space is still there.  But we can also modify the font size.

If we could reduce the font size down to 1 it would almost achieve compressing the white space.  Unfortunately I cannot modify the font size to below 8.  So almost there maybe there's a workaround for that?

I know the operations existed with Matrix so it looks like I need to convert the Array to a Matrix first or start with a Matrix.  Because I had a mixture of numbers and strings I thought it would be better to use Arrays, in fact I didn't think Matricies could handle strings so I didn't even attempt that route.

I know the operations existed with Matrix so it looks like I need to convert the Array to a Matrix first or start with a Matrix.  Because I had a mixture of numbers and strings I thought it would be better to use Arrays, in fact I didn't think Matricies could handle strings so I didn't even attempt that route.

@Joe Riel 

Okay thanks for pointing that out. 

 

First 138 139 140 141 142 143 144 Last Page 140 of 162