In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that denotes a number that is 1 if the condition in square brackets is satisfied, and 0 otherwise. More exactly,
where P is a statement that can be true or false. This notation was introduced by Kenneth E. Iverson in his programming language APL,[1] while the specific restriction to square brackets was advocated by Donald Knuth to avoid ambiguity in parenthesized logical expressions.[2]
Contents |
Uses
The notation is useful in expressing sums or integrals without boundary conditions. For example
In the first sum, the index i is limited to be in the range 0 to 10. The second sum is allowed to range over all integers, but where i is strictly less than 0 or strictly greater than 10, the summand is 0, contributing nothing to the sum. Such use of the Iverson bracket can permit easier manipulation of these expressions.
Another use of the Iverson bracket is to simplify equations with special cases. For example, the formula
which is valid only for n > 1 may be written
which is valid for all positive integer n.
Special Cases
The Kronecker delta notation is a specific case of Iverson notation when the condition is equality. That is,
The indicator function, another specific case, has set membership as its condition:
The sign function and Heaviside step function are also easily expressed in this notation:
- sgn(x) = [x > 0] − [x < 0]
![H(x) = [x > 0] + \frac{1}{2}[x=0]](http://wpcontent.answers.com/math/d/7/1/d717451888a6563e8caa6c7bc16264d2.png)
And the trichotomy of the reals can be expressed:
- [a < b] + [a = b] + [a > b] = 1
References
- ^ Ronald Graham, Donald Knuth, and Oren Patashnik. "Concrete Mathematics." Section 2.2: Sums and Recurrences.
- ^ Donald Knuth, "Two Notes on Notation", American Mathematical Monthly, Volume 99, Number 5, May 1992, pp. 403–422. (TeX, arΧiv:math/9205211)
External links
- Donald Knuth, "Two Notes on Notation", American Mathematical Monthly, Volume 99, Number 5, May 1992, pp. 403–422. (TeX, arΧiv:math/9205211)
- Kenneth E. Iverson, "A Programming Language", New York: Wiley, p. 11, 1962.
| This mathematics-related article is a stub. You can help Wikipedia by expanding it. |
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)

![[P] = \begin{cases} 1 & \mbox{if } P \mbox{ is true;} \\ 0 & \mbox{otherwise.} \end{cases}](http://wpcontent.answers.com/math/e/c/a/eca574431fff8c9b2a555bcc9c8cfba8.png)
![\sum_{0\le i \le 10} i^2 = \sum_{i} i^2[0 \le i \le 10].](http://wpcontent.answers.com/math/a/c/1/ac1818ca7642ceacc35862727e5f1e2f.png)

![\sum_{1\le k\le n \atop (k,n)=1}\!\!k = \frac{1}{2}n(\varphi(n)+[n=1])](http://wpcontent.answers.com/math/4/d/9/4d983636b8c48b6795d61004438aede8.png)
![\delta_{ij} = [i=j].\,](http://wpcontent.answers.com/math/b/1/7/b17d8699b618ec6e77e5d14234f9cdb3.png)
![\mathbf{I}_A(x) = [x\in A].](http://wpcontent.answers.com/math/1/8/a/18a8a7f57b1dd9694c366442041be2de.png)



