Zero-based numbering in the context of Array data structure


Zero-based numbering in the context of Array data structure

Zero-based numbering Study page number 1 of 1

Play TriviaQuestions Online!

or

Skip to study material about Zero-based numbering in the context of "Array data structure"


⭐ Core Definition: Zero-based numbering

Zero-based numbering is a way of numbering in which the initial element of a sequence is assigned the 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 zeroth element, rather than the first element; zeroth is a coined word for the ordinal 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. In computer science, 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 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.

↓ Menu
HINT:

In this Dossier

Zero-based numbering in the context of Fundamental frequency

The fundamental frequency, often referred to simply as the fundamental (abbreviated as f0 or f1 ), is defined as the lowest frequency of a periodic waveform. In music, the fundamental is the musical pitch of a note that is perceived as the lowest partial present. In terms of a superposition of sinusoids, the fundamental frequency is the lowest frequency sinusoidal in the sum of harmonically related frequencies, or the frequency of the difference between adjacent frequencies. In some contexts, the fundamental is usually abbreviated as f0, indicating the lowest frequency counting from zero. In other contexts, it is more common to abbreviate it as f1, the first harmonic. (The second harmonic is then f2 = 2⋅f1, etc.)

According to Benward and Saker's Music: In Theory and Practice:

View the full Wikipedia page for Fundamental frequency
↑ Return to Menu