Iverson bracket

Iverson bracket

In mathematics, the Iverson bracket is a convenient notation that denotes a number that is 1 if the condition in square brackets is satisfied, and 0 otherwise. More exactly,: [P] = egin{cases} 1; & mbox{if } P mbox{ is true;} \ 0; & mbox{otherwise.} end{cases}where "P" is a statement that can be true or false. This notation was introduced by Kenneth E. Iverson in his programming language APL. [Ronald Graham, Donald Knuth, and Oren Patashnik. "Concrete Mathematics." Section 2.2: Sums and Recurrences.]

Uses

The notation is useful in expressing sums or integrals without boundary conditions. For example: sum_{0le i le 10} i^2 = sum_{i} i^2 [0 le i le 10] .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:sum_{1le kle n atop (k,n)=1}!!k = frac{1}{2}nvarphi(n)

which is valid only for n>1 may be written

:sum_{1le kle n atop (k,n)=1}!!k = frac{1}{2}n(varphi(n)+ [n=1] )

which is valid for all positive integer n.

pecial Cases

The Kronecker delta notation is a specific case of Iverson notation when the condition is equality. That is,: delta_{ij} = [i=j] .,

The indicator function, another specific case, has set membership as its condition:: mathbf{I}_A(x) = [xin A] .

The sign function is also easily expressed in this notation:: sgn(x) = [x > 0] - [x < 0] .

References

External links

* Donald Knuth, "Two Notes on Notation", American Mathematical Monthly, Volume 99, Number 5, May 1992, pp. 403–422. ( [http://www-cs-faculty.stanford.edu/~knuth/papers/tnn.tex.gz TeX] , arxiv|math|9205211)
* Kenneth E. Iverson, "A Programming Language", New York: Wiley, p. 11, 1962.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Iverson — may refer to:People* Alan Iverson, Australian Filmmaker * Alfred Iverson Jr. (1829 1911), American Civil War general * Alfred Iverson Sr. (1798 1873), American politician * Allen Iverson (b. 1975), American basketball player * F. Kenneth Iverson …   Wikipedia

  • Iverson notation — can refer to:* APL programming language * Iverson bracket, in mathematics …   Wikipedia

  • Bracket — 〈 redirects here. It is not to be confused with く, a Japanese kana. This article is about bracketing punctuation marks. For other uses, see Bracket (disambiguation). Due to technical restrictions, titles like :) redirect here. For typographical… …   Wikipedia

  • Bracket (mathematics) — In mathematics, various typographical forms of brackets are frequently used in mathematical notation such as parentheses ( ), square brackets [ ] , curly brackets { }, and angle brackets < >. In the typical use, a mathematical expression is… …   Wikipedia

  • Kenneth E. Iverson — Infobox Scientist name = Kenneth Eugene Iverson image width = caption = birth date = birth date|1920|12|17|mf=y birth place = Camrose, Alberta, Canada death date = death date and age|2004|10|19|1920|12|17|mf=y death place = Toronto, Ontario,… …   Wikipedia

  • Bernoulli number — In mathematics, the Bernoulli numbers Bn are a sequence of rational numbers with deep connections to number theory. They are closely related to the values of the Riemann zeta function at negative integers. There are several conventions for… …   Wikipedia

  • Indicator function — The graph of the indicator function of a two dimensional subset of a square. In mathematics, an indicator function or a characteristic function is a function defined on a set X that indicates membership of an element in a subset A of …   Wikipedia

  • Twelvefold way — In combinatorics, the twelvefold way is a name given to a systematic classification of 12 related enumerative problems concerning two finite sets, which include the classical problems of counting permutations, combinations, multisets, and… …   Wikipedia

  • Likelihood function — In statistics, a likelihood function (often simply the likelihood) is a function of the parameters of a statistical model, defined as follows: the likelihood of a set of parameter values given some observed outcomes is equal to the probability of …   Wikipedia

  • Kronecker delta — In mathematics, the Kronecker delta or Kronecker s delta, named after Leopold Kronecker (1823 1891), is a function of two variables, usually integers, which is 1 if they are equal, and 0 otherwise. So, for example, delta {12} = 0, but delta {33} …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”