Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Zero-based numbering
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Counting from "0" instead of "1" first}} {{Use American English|date=January 2019}} '''Zero-based numbering''' is a way of [[numbering]] in which the initial element of a [[sequence]] is assigned the [[Indexed family|index]] 0, rather than the index 1 as is typical in everyday non-mathematical or non-programming circumstances. Under zero-based numbering, the initial element is sometimes termed the ''[[0|zeroth]]'' element,<ref>{{cite book |last1=M. Seed |first1=Graham |title=An Introduction to Object-Oriented Programming in C++ with Applications in Computer Graphics |date=1965 |publisher=Springer |location=British Library |isbn=1852334509 |page=391 |edition=2nd |url=https://books.google.com/books?id=_lqj98AsnGAC&q=zeroth+element&pg=PA391 |access-date=11 February 2020}}</ref> rather than the ''first'' element; ''zeroth'' is a [[word coinage|coined]] [[ordinal number (linguistics)|ordinal number]] corresponding to the number [[zero]]. In some cases, an object or value that does not (originally) belong to a given sequence, but which could be naturally placed before its initial element, may be termed the zeroth element. There is no wide agreement regarding the correctness of using zero as an ordinal (nor regarding the use of the term ''zeroth''), as it creates ambiguity for all subsequent elements of the sequence when lacking context. Numbering sequences starting at 0 is quite common in mathematics notation, in particular in [[combinatorics]], though programming languages for mathematics usually index from 1.<ref>{{cite web |url=https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html |title=Matrix Indexing in MATLAB |access-date=23 February 2021 |author=Steve Eddins and Loren Shure}}</ref><ref>{{cite web |url=https://reference.wolfram.com/language/howto/GetElementsOfLists.html |title=How to : Get Elements of Lists |access-date=23 February 2021 |publisher=Wolfram}}</ref><ref>{{cite web |url=https://www.maplesoft.com/support/help/maple/view.aspx?path=rtable_indexing |title=Indexing Arrays, Matrices, and Vectors |access-date=23 February 2021 |publisher=Maplesoft}}</ref> In [[computer science]], [[Array data structure|array]] indices usually start at 0 in modern programming languages, so computer programmers might use ''zeroth'' in situations where others might use ''first'', and so forth. In some mathematical contexts, zero-based numbering can be used without confusion, when ordinal forms have well established meaning with an obvious candidate to come before ''first''; for instance, a ''zeroth derivative'' of a function is the function itself, obtained by [[derivative|differentiating]] zero times. Such usage corresponds to naming an element not properly belonging to the sequence but preceding it: the zeroth derivative is not really a derivative at all. However, just as the ''first derivative'' precedes the ''second derivative'', so also does the ''zeroth derivative'' (or the original function itself) precede the ''first derivative''.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)