News for hackers. Stuff that matters.
Re:Why numbering should start at zero (1982) by jhbadger on Thursday December 15, 2016 @01:18PM (#13186756)
And nearly every mathematical context as well. There's a reason why R, Julia, Mathematica, Matlab, etc. use 1-based numbering -- it lets you translate standard formulas into code without fiddling with numbering.
Re:Why numbering should start at zero (1982) by sincerel on Thursday December 15, 2016 @02:23PM (#13187370)
It lets you translate freshman level math problems with the same indices. As soon as you deal with Fourier transforms, Vandermonde matrices, polynomials, or pretty much anything where the array index is related to the value in the array, zeros make more sense. People like 1-based because they're familiar with it, and that's fine, but pretending that it makes more sense because their familiar with some math that uses 1-based is silly.