On Tuesday, October 20, 2015 at 9:03:52 PM UTC-4, Luke Stagner wrote: > > Sorry to dredge up this issue again but was there any reason for the > return type of linspace to be LinSpace instead of FloatRange. They are > seemingly indistinguishable. >
They are not quite the same because of roundoff differences; see e.g. http://rsnippets.blogspot.com/2015/01/sequence-generation-in-r-python-and.html Basically, LinSpace is designed to give you a prescribed start/end points and length, whereas FloatRange is designed to give as close as possible to the spacing you prescribed. See also the discussions in: https://github.com/JuliaLang/julia/issues/2333 https://github.com/JuliaLang/julia/issues/7420 https://github.com/JuliaLang/julia/pull/9666
