-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
additionoh, so shiny!oh, so shiny!maybeto do, or not to do?to do, or not to do?subtractionhuh? where did it go?huh? where did it go?
Description
Currently, the BinaryInteger/entropy() returns the number of bits needed to arbitrarily represent a binary integer. This number includes the appendix bit. In other words, it may return a value in the range 1...IX.max. In the limit of things, this is a bit awkward because IX.max+1 is a simpler cutoff point as it is a power of 2. Like, you can fit IX.max+1 bits exactly in an array of 8-bit elements. So it would perhaps be simpler if it instead returned the index of the first appendix bit (i.e. one less than the current value). Just a thought at this point.
Metadata
Metadata
Assignees
Labels
additionoh, so shiny!oh, so shiny!maybeto do, or not to do?to do, or not to do?subtractionhuh? where did it go?huh? where did it go?