In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement x = y. It maps any statement to a function of the free variables in that statement. This function is defined to take the value 1 for the values of the variables for which the statement is true, and takes the value 0 otherwise. It is generally denoted by putting the statement inside square brackets:
In other words, the Iverson bracket of a statement is the indicator function of the set of values for which the statement is true.
The Iverson bracket allows using capital-sigma notation without restriction on the summation index. That is, for any property of the integer , one can rewrite the restricted sum in the unrestricted form . With this convention, does not need to be defined for the values of k for which the Iverson bracket equals 0; that is, a summand must evaluate to 0 regardless of whether is defined.
The notation was originally introduced by Kenneth E. Iverson in his programming language APL,[1][2] though restricted to single relational operators enclosed in parentheses, while the generalisation to arbitrary statements, notational restriction to square brackets, and applications to summation, was advocated by Donald Knuth to avoid ambiguity in parenthesized logical expressions.[3]
^Kenneth E. Iverson (1962). A Programming Language. Wiley. p. 11. Retrieved 7 April 2016.
^Ronald Graham, Donald Knuth, and Oren Patashnik. Concrete Mathematics, Section 2.1: Notation.
^Donald Knuth, "Two Notes on Notation", American Mathematical Monthly, Volume 99, Number 5, May 1992, pp. 403–422. (TeX, arXiv:math/9205211).
mathematics, the Iversonbracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iversonbracket of the statement...
Iverson may refer to: Iverson Award, an ACM honour for APL contributions Iversonbracket, a mathematical notation Iverson Notation, the syntactic basis...
function, the Lie bracket, equivalence classes, the Iversonbracket, and matrices. Square brackets may be used exclusively or in combination with parentheses...
and ceiling functions. 4. Iversonbracket: if P is a predicate, [ P ] {\displaystyle [P]} may denote the Iversonbracket, that is the function that takes...
indicator to which a binary operation fails to be commutative Iversonbracket, notation Lie bracket of vector fields, operator Dirac notation, in quantum mechanics...
but facilitates mathematical manipulations is as follows, using the Iversonbracket: f ( x ∣ p ) = ∏ i = 1 k p i [ x = i ] , {\displaystyle f(x\mid {\boldsymbol...
{\displaystyle H(x):={\begin{cases}1,&x\geq 0\\0,&x<0\end{cases}}} using the Iversonbracket notation: H ( x ) := [ x ≥ 0 ] {\displaystyle H(x):=[x\geq 0]} an indicator...
Iverson notation can refer to: APL (programming language) Iversonbracket, in mathematics This disambiguation page lists articles associated with the...
the other. * The Iversonbracket is a generalization of the discrete delta-function: If the bracketed expression is true, the bracket has value 1; if the...
{sgn}(x^{n})=(\operatorname {sgn} x)^{n}\,.} The signum can also be written using the Iversonbracket notation: sgn x = − [ x < 0 ] + [ x > 0 ] . {\displaystyle \operatorname...
binomial coefficient and [ k ≤ n ] {\displaystyle [k\leq n]} is an Iversonbracket. The expression can be derived as follows: ( m ∣ n , k ) {\displaystyle...
politically incorrect". The book popularized some mathematical notation: the Iversonbracket, floor and ceiling functions, and notation for rising and falling factorials...
{\displaystyle L({\hat {y}},y)=\left[{\hat {y}}\neq y\right]} using Iversonbracket notation, i.e. it evaluates to 1 when y ^ ≠ y {\displaystyle {\hat...
_{i})-\Phi (\theta _{k-1}-\mathbf {w} \cdot \mathbf {x} _{i})]} (using the Iversonbracket [yi = k].) The log-likelihood of the ordered logit model is analogous...
{\displaystyle \chi _{(A\,\Delta \,B)}=\chi _{A}\oplus \chi _{B}} or using the Iversonbracket notation [ x ∈ A Δ B ] = [ x ∈ A ] ⊕ [ x ∈ B ] {\displaystyle [x\in...
(Iverson used square brackets for a different purpose, the Iversonbracket notation.) Both notations are now used in mathematics, although Iverson's notation...
\\[5mu]{\text{undefined}}&{\text{if }}x=0{\text{ and }}y=0.\end{cases}}} The Iversonbracket notation allows for an even more compact expression: atan2 ( y ,...
5]+[n=4]&&{\pmod {2}}\end{aligned}}} Where [ b ] {\displaystyle [b]} is the Iversonbracket. and working modulo 3 {\displaystyle 3} we can similarly prove that...
{\displaystyle x_{j}} , respectively, and [ ⋅ ] {\displaystyle [\cdot ]} is the Iversonbracket, which is 1 when the contents are true and 0 when false. d {\displaystyle...
{\displaystyle [X={\text{green}}]} can be constructed; this uses the Iversonbracket, and has the value 1 if X {\displaystyle X} has the value "green",...
The notation [ y i ∗ < 0 ] {\displaystyle [y_{i}^{\ast }<0]} is the Iversonbracket, sometimes written I ( y i ∗ < 0 ) {\displaystyle {\mathcal {I}}(y_{i}^{\ast...
expression [n even] has the value 1 if n is even and 0 otherwise (Iversonbracket). These identities show that the quotient of Bernoulli and Euler numbers...
\!\right\rangle ,} with initial condition for n = 0, expressed in Iversonbracket notation: ⟨ ⟨ 0 k ⟩ ⟩ = [ k = 0 ] . {\displaystyle \left\langle \!\...