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). • Unless an explicit Return is used, the value returned by Do is Null. • New in Version 1.
|