3 ms·
In physics, relativists usually count from 0. Furthermore on the numerical side, C is at least as popular as Fortran. Julia lets you switch the index base too.
by Y_Y 3y ago
In physics, relativists usually count from 0. Furthermore on the numerical side, C is at least as popular as Fortran.
Julia lets you switch the index base too.
Finally a special mention for Mathematica, which appears to be 1-based, but in fact is a thinly disguised 0-based lisp, {a,b} is just List[a,b] is really just (List a b) so of course if you want b you ask for element 2, element 0 is the head and is just List.