can anybody explain the meaning of the length function in Integer? I thought 
that should be the length of the binary expansion, 
at least for i >= 0:

(248) -> for i in -8..8 repeat print [i::ANY,i::BINARY::ANY,length i]
   [- 8,- 1000,3]
   [- 7,- 111,3]
   [- 6,- 110,3]
   [- 5,- 101,3]
   [- 4,- 100,2]
   [- 3,- 11,2]
   [- 2,- 10,1]
   [- 1,- 1,0]
   [0,0,0]
   [1,1,1]
   [2,10,2]
   [3,11,2]
   [4,100,3]
   [5,101,3]
   [6,110,3]
   [7,111,3]
   [8,1000,4]
                                                                   Type: Void



Mit freundlichen Grüßen

Johannes Grabmeier

Prof. Dr. Johannes Grabmeier
Köckstraße 1, D-94469 Deggendorf
Tel. +49-(0)-991-2979584, Tel. +49-(0)-171-5503789
Tel. +49-(0)-991-3615-100 (d),  Fax: +49-(0)-1803-5518-17745

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to