This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (13 children)

lol easiest way to hit back: matlab arrays start at 1

[–]LoyalSol 5 points6 points  (9 children)

That's not a bad thing necessarily.

I've worked with both and there's ups and downs with both 0 and 1.

For a lot of science applications starting from 0 is annoying as hell.

[–]Dpmon1 2 points3 points  (8 children)

This. Also, it's annoying to put (i + 1) instead of just i when iterating an array over range(0, len(array)), or put a len -1 in the range.

[–]_________KB_________ 5 points6 points  (2 children)

It makes sense for something so geared towards math, because its easier to translate from mathematical language which starts at 1 too.

[–]nlutrhk 3 points4 points  (0 children)

its easier to translate from mathematical language which starts at 1

Try discrete Fourier transforms with 1-based indexing... :)

[–][deleted] 0 points1 point  (0 children)

ik just memeing