Earlier quoted context omitted.
Are there common languages where -0 != +0? Or are you implying that this would be a good decision when creating a new language?
javascript: > 1/(-0) -Infinity > 1/0 Infinity > Object.is(0, -0) false Of course = doesn't actually test equality in javascript. == reports -0 as being equal to +0, but Object.is reports them as different.
Negative Base
71–74 of 74 posts
Re: Negative Base
#72Re: Negative Base
#73Earlier quoted context omitted.
Is it not a binary search problem?
Not really - you can reduce it to one but you don't quite have enough information. So I think it goes like this: - you have 12 coins, and each one has an equal chance of being heavier or lighter than the others - so that's 24 possiblities - you have 3 moves, and the result of each move could be one side of the beam goes down, one side goes up, or it balances. That means you can create a system that identifies 3^3 = 2…
Wrong. If it was true, that would imply that the probability of it balancing is 1, since the information you get is -log2(probability). Obviously the probability of it balancing is lower than 1, so you do get information.
Re: Negative Base
#74Earlier quoted context omitted.
Not really - you can reduce it to one but you don't quite have enough information. So I think it goes like this: - you have 12 coins, and each one has an equal chance of being heavier or lighter than the others - so that's 24 possiblities - you have 3 moves, and the result of each move could be one side of the beam goes down, one side goes up, or it balances. That means you can create a system that identifies 3^3 = 2…
"that means you're not really getting any information if the beam balances" Wrong. If it was true, that would imply that the probability of it balancing is 1, since the information you get is -log2(probability). Obviously the probability of it balancing is lower than 1, so you do get information.