News for hackers. Stuff that matters.
Re:What number is halfway between 1 and 9? by jamesbressi on Monday October 08, 2012 @01:56PM (#4628012)
What does it mean when you can't answer the question properly and said "4.5"?
Re:What number is halfway between 1 and 9? by sukuriant on Monday October 08, 2012 @02:10PM (#4628075)
You're either a math major or an engineer. We can't do simple math anymore. Please give it to us in the form of an integral.

Also, there's the ambiguity of "inclusive or exclusive? And, which side?"

[1,9], (1,9], [1,9) or (1,9)?

Re:What number is halfway between 1 and 9? by kylebrown on Monday October 08, 2012 @03:24PM (#4628383)
Those ambiguities make no difference to the answer. Answering 4.5 just means you forgot that starting a count from 0 gives a different total than starting from 1.
Re:What number is halfway between 1 and 9? by sukuriant on Monday October 08, 2012 @03:53PM (#4628487)
If you're using the set of integers, then [1,9) is equivalent to [1,8]; and that would have a different answer from 5 for "what the center is"; so, it does affect the answer.
Re:What number is halfway between 1 and 9? by kylebrown on Monday October 08, 2012 @10:54PM (#4629692)
[1,9) is not equivalent to [1,8]. The center of [1,9) is infinitesimally close to the center of [1,9]. Its exactly equal when you take the limit.
Re:What number is halfway between 1 and 9? by sukuriant on Monday October 08, 2012 @11:23PM (#4629794)
... I was using that nomenclature for the short hand of "inclusive/exclusive". 1 to 9 exclusive is 1 to 8 in the integer set. Sorry for the lack of clarity. Perhaps now we can get to my original point?
Re:What number is halfway between 1 and 9? by nostromo on Monday October 08, 2012 @03:16PM (#4628356)
4.5 is halfway between 0 and 9. Halfway between 1 and 9 is 1+(9-1)/2 = 5
Re:What number is halfway between 1 and 9? by JoeAltmaier on Monday October 08, 2012 @03:23PM (#4628377)
Nu-uh. By that math, halfway between 1 and 2 is.... 1?!
Re:What number is halfway between 1 and 9? by jlgreco on Monday October 08, 2012 @04:19PM (#4628589)

  1+(2-1)/2
  1+(1)/2
  1.5
It only equals 1 if you are using ints ;) I do that more often than I care to admit, I blame programming.
Re:What number is halfway between 1 and 9? by kylebrown on Monday October 08, 2012 @03:28PM (#4628395)
his formula is correct. you made a mistake in the order of operations.