3 ms·
0-based indexing is not universal in math either. We often index time from 0, but when we refer to components of a vector, we often index those from 1. For exam
by nequo 4y ago
0-based indexing is not universal in math either. We often index time from 0, but when we refer to components of a vector, we often index those from 1. For example, I'd write or see things like $\sum_{k=1}^N f(x_k)$ where $x$ is a vector. In these cases, 0-based indexing would look out of place.
- jhbadger 4y agoPretty much all programming languages designed for math are 1-based. Besides Julia, there's R, Mathematica (or "Wolfram language" as it is called these days), and Matlab.