Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Programming / Flow Control /

Do

FilledSmallSquare Do[expr, imax] evaluates expr imax times.

FilledSmallSquare Do[expr, i, imax] evaluates expr with the variable i successively taking on the values 1 through imax (in steps of 1).

FilledSmallSquare Do[expr, i, imin, imax] starts with i = imin. Do[expr, i, imin, imax, di] uses steps di.

FilledSmallSquare Do[expr, i, imin, imax, j, jmin, jmax, ... ] evaluates expr looping over different values of j, etc. for each i.

FilledSmallSquare Do uses the standard Mathematica iteration specification.

FilledSmallSquare Do evaluates its arguments in a non-standard way (see Section A.4.2).

FilledSmallSquare You can use Return, Break, Continue and Throw inside Do.

FilledSmallSquare Unless an explicit Return is used, the value returned by Do is Null.

FilledSmallSquare See Section 1.7.3 and Section 2.6.9.

FilledSmallSquare See also: For, While, Table, Nest, NestWhile, Fold.

FilledSmallSquare New in Version 1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: