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

Do

Usage

Do[expr, { }] evaluates expr  times.
Do[expr, {i,  }] evaluates expr with the variable i successively taking on the values 1 through  (in steps of 1).
Do[expr, {i,  ,  }] starts with i =  . Do[expr, {i,  ,  , di}] uses steps di.
Do[expr, {i,  ,  }, {j,  ,  }, ... ] evaluates expr looping over different values of j, etc. for each i.


Notes

Do uses the standard Mathematica iteration specification.
Do evaluates its arguments in a non-standard way (see Section A.4.2).
• You can use Return, Break, Continue and Throw inside Do.
• Unless an explicit Return is used, the value returned by Do is Null.
• See also: For, While, Table, Nest, NestWhile, Fold.
• New in Version 1.


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



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: