News for hackers. Stuff that matters.
Re:Calculus with Julia by constantcrying on Sunday May 19, 2024 @03:54AM (#40405131)
>I can’t comprehend how people came to the conclusion this was a good idea.

If you look at a textbook for numerical analysis likely the algorithms will be 1-indexed. Julia is a language primarily for writing down mathematics, it would be quite silly not to use mathematical conventions.

Re:Calculus with Julia by forgotpwd16 on Sunday May 19, 2024 @03:30PM (#40409198)
Curious whether likely is indeed correct. Certainly the textbook my numerical analysis course had wasn't because remember playing with indices to get clean Julia code.
Re:Calculus with Julia by constantcrying on Sunday May 19, 2024 @04:23PM (#40409501)
To be honest I don't think I ever saw a book or had a lecture about numerical analysis, where indices were deliberately started at 0.