Items tagged with reverse

How to reverse the order in a list?


i have m := [1, 1, 0, 0, 1, 1, 1, 0]

I want to get the output like newm:=[0,1,1,1,0,0,1,1].

How to solve? Any command can help?

I have the following command (credit to @Carl Love ), this command will do certain bit shifting with the next block, and the last block will shift with the first block. 

B:= Matrix([[0,0,1,1,0,0,1], [0,0,1,1,1,0,0],[0,1,0,1,0,1,0], [1,0,0,1,1,1,0]]):
Bnew:= copy(B):
Bnew[[4,1,2,3], 3..5]:= B[.., 3..5]:

May i know any command can help to reverse the shifting position between the block?

for example,

original block  [0,0,1,1,0,0,1], [0,0,1,1,1,0,0],[0,1,0,1,0,1,0], [1,0,0,1,1,1,0]

i need to shift the 3..5 position of block 1 and change to the 5..3 position of block 2. 


After shifting, 


Any command can help to solve? thank you in advance.



[1.39794000867203, .698970004336017, 0., 1., .602059991327960, 1.30102999566398]

How do I reverse this process , ie get back [25,5,1,10,4,20] using map command. Obviously it's 10 to the power but map(10^,[1.39794000867203, .698970004336017, 0., 1., .602059991327960, 1.30102999566398]) won't work


I need to write a recursive method to reverse a string.

The hint given is to convert the string inputed to a character sequence, then apply recursive method, then reverse character sequence, then convert back to  string and output it.

So "abcd" gives output "dcba"


I came up with what is below, but I don't know if that's a recursive method.





Is there any way to reverse an axis in the plot command? I solved the baristochrone problem as 
a school project,but I did it using an upside-down Y axis. Of course, when I try to make a graph with
my solution, I'm getting a regular cycloid instead of an inverted one, since I was using a 
reverted Y axis when solving the problem. 

Help would be very appreciated as I couldn,t find anything on the subject.
Page 1 of 1