News for hackers. Stuff that matters.
Re:Julia 1.0 by currymj on Thursday August 09, 2018 @09:39AM (#17724042)
Apart from being close to MATLAB, a goal of Julia is to make it easy to just type mathematical formulas straight off the page and into your code. 1-based indexing makes this so much easier, even if it seems somewhat depraved to a computer scientist.
Re:Julia 1.0 by kmm on Thursday August 09, 2018 @11:37AM (#17725104)
In my experience, 0-based indexing is way more common in mathematics. Maybe it depends on the field you're working in. Off the top of my head, dimensions are numbered from zero in relativity and particle physics, Fourier series only make sense with 0-based indexing, coefficients of polynomials are numbered from zero, Taylor series, indexing by taking the modulo ...
Re:Julia 1.0 by simonbyrne on Thursday August 09, 2018 @11:59AM (#17725321)
A slight quibble: FFTs are more naturally indexed periodically. Luckily, Julia has that covered: https://github.com/JuliaArrays/FFTViews.jl