04-07-2010 10:37 AM
27 years for me. First learned boolean logic in 1983.
Ben's 34 years + Wayne's 27 years = 61 years and counting
I'll bet the number gets pretty big.
04-07-2010 10:47 AM
How are we defining "learned Boolean Logic" - I could say I learnt it in 1981. I was fed or I was not fed. I was asleep or I was not. ![]()
I'm about to be retaught it again. Tired and very tired.
04-07-2010 10:53 AM
In my cases I was trained by the US Navy and had to pass a test like
(A + B) + C = ?
A B C ?
0 0 0 0
0 0 1 1
0 1 0 1
1 0 0 1
0 1 1 1
1 0 1 1
1 1 0 1
1 1 1 1
Ben
04-07-2010 10:59 AM
Ben
When did your teddy steal Christian's wink? - It's scary coming from the bear!!
04-07-2010 12:11 PM
04-08-2010 01:59 AM
The number to boolean array is the easy solution if you "no speaky computer talky very wellie".
A programmatically more beutiful solution is to make a small loop, enter the number through a shift register, loop it 32 times (i assume it's a U32/I32 you have as result, else change accordingly), and bitshift right, connect the shifted bit to a case and if true add the loop's I to an array. The result is ofc connected to the shift register.
That'll give you an array with the indexes and use the faster and more resource contraint bit shuffling.
(Technically it gives you the offset, if you want the index you'll need to add 1)
It might look like alot, but it's a very small loop and you can follow the description straight off the bat. 🙂
/Y
04-08-2010 06:11 AM
04-08-2010 07:29 AM
muks wrote:
James W wrote:Ben
When did your teddy steal Christian's wink? - It's scary coming from the bear!!
It winks so infrequently, I must have been blinking every time it winked!!
Only showing evil traits when people aren't looking - now that is evil!!
04-08-2010 08:14 AM
James,
Does this mean you missed the glint in altenbach's eye as well?
04-09-2010 05:45 AM
Wayne.C wrote:James,
Does this mean you missed the glint in altenbach's eye as well?
There ahead of you!
Altenbach's first name is "Christian" - at least it is according to his profile and many of Ben and other people's posts. ![]()