请输入您要查询的字词:

 

单词 Iterator
释义

iterator


An iterator is a variable that one by one takes on all the values (usually integers) in a given range. The letter i is often used for iterators (though that letter is overloaded as the imaginary unitMathworldPlanetmath), j is often used as a second iterator.

In mathematics iterators are most often used in sum and product notation. For example, in

i=3742i2

the iterator i 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}]”.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 23:29:14