|
|
|
|
|
An iterator is a variable that one by one takes on all the values (usually integers) in a given range. The letter is often used for iterators (though that letter is overloaded as the imaginary unit), is often used as a second iterator.
In mathematics iterators are most often used in sum and product notation. For example, in
the iterator takes on values from 3 to 7.
In computer programming languages iterators are often associated with the "for" reserved word, e.g., “FOR I = 1 TO 47” in BASIC, “for (i = 1; i < 48; i++)” in C++. In Mathematica, iterators are often given in curly braces together with an (omittable) initial value and a required finish value separated by commas, e.g., “Table[2^n - 1, {n, 2, 48}]”.
|
"iterator" is owned by PrimeFan. [ owner history (1) ]
|
|
(view preamble)
Cross-references: separated, Mathematica, C, BASIC, languages, product, sum, imaginary unit, overloaded, range, integers, variable
There are 15 references to this entry.
This is version 3 of iterator, born on 2006-11-19, modified 2006-11-25.
Object id is 8571, canonical name is Iterator.
Accessed 1023 times total.
Classification:
| AMS MSC: | 68N15 (Computer science :: Software :: Programming languages) |
|
|
|
|
|
|
Pending Errata and Addenda
|
|
|
|
|
|
|
|
|
|
|