Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Consider n real numbers a_0, ..., a_{n-1}. That's not very elegant.


Sure it is.

This discrepancy appears in physics too. It's common to use 1,2,3 for spatial indices, but when you reach enlightenment and think in terms of spacetime you add a zero index and not a four.


That's only because you insist on explicitly mentioning the last element, which you can only do when the sequence is finite and non-empty (more generally, when it is indexed by a successor ordinal). So your choice of notation is not only inelegant, it cannot even express all possible sequences.


as a software engineer I see this all day long haha

but good point, remembering academic linear algebra, seeing 0..n-1 in sigma/sums notations would be not convenient




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: