[sage-support] Re: Rotate of Bits

2011-08-14 Thread Benjamin Jones
On Aug 13, 3:00 am, Simon King wrote: > Hi Santanu, hi Benjamin, > > On 13 Aug., 06:23, Benjamin Jones wrote: > > > On Aug 12, 9:38 pm, Santanu Sarkar > > See section 5.4.1 of: > > >http://docs.python.org/library/stdtypes.html > > I doubt that that is answering the question: "I have  64 bit in

[sage-support] Re: Rotate of Bits

2011-08-13 Thread Simon King
Hi Santanu, hi Benjamin, On 13 Aug., 06:23, Benjamin Jones wrote: > On Aug 12, 9:38 pm, Santanu Sarkar > See section 5.4.1 of: > > http://docs.python.org/library/stdtypes.html I doubt that that is answering the question: "I have 64 bit integer N. I want to rotate bits of N cyclically 5 bits ri

[sage-support] Re: Rotate of Bits

2011-08-12 Thread Benjamin Jones
On Aug 12, 9:38 pm, Santanu Sarkar wrote: > I have  64 bit integer N. I want to rotate bits of N cyclically 5 bits right > and 5 bits left to generate two integers N1, N2. > How can I do this in Sage efficiently? See section 5.4.1 of: http://docs.python.org/library/stdtypes.html -- BFJ -- To