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

> 0 based indexing

I mean, zero based indexing isn't exclusive to computing. Plenty of times in physics or math we do x_0 for the start of a sequence vs x_1.

Although, fair, our textbook had the definition of a sequence being a mapping of elements to z+, which is zero exclusive



Both zero-based and one-based indexing is common in mathematics, for example polynomials, exponential series, transforms, etc. are often zero-based.

But in most of the literature that I've seen, vectors and matrices tend to number elements starting with 1.




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

Search: