News for hackers. Stuff that matters.
Re:Calculus with Julia by hughesjj on Saturday May 18, 2024 @07:31PM (#40402943)
> 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

Re:Calculus with Julia by DNF2 on Monday May 20, 2024 @09:29AM (#40415253)
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.