Skip to content

Commit

Permalink
update linspace to n=50, from n=100 to match code.
Browse files Browse the repository at this point in the history
Fix to documentation for linspace

linspace is defined in
https://github.com/JuliaLang/julia/blob/master/base/range.jl#L235 to
have a default of n=50 points, not n=100.
  • Loading branch information
jverzani authored and ViralBShah committed Jan 1, 2016
1 parent 9bab4da commit a139315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/docs/helpdb/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ Ac_rdiv_B


"""
linspace(start, stop, n=100)
linspace(start, stop, n=50)
Construct a range of `n` linearly spaced elements from `start` to `stop`.
"""
Expand Down
2 changes: 1 addition & 1 deletion doc/stdlib/arrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Constructors
Constructs an identity matrix of the same dimensions and type as ``A``\ .

.. function:: linspace(start, stop, n=100)
.. function:: linspace(start, stop, n=50)

.. Docstring generated from Julia source
Expand Down

0 comments on commit a139315

Please sign in to comment.