|
|
|||
|
|
| Mathematica Tutorial | Functions »|Tutorials »|More About » |
| Do[expr,{i,imax}] | evaluate expr with i running from 1 to imax |
| Do[expr,{i,imin,imax,di}] | evaluate expr with i running from imin to imax in steps of di |
| Print[expr] | print expr |
| Table[expr,{i,imax}] | make a list of the values of expr with i running from 1 to imax |
Implementing repetitive operations.
|
If you do not give an iteration variable, Mathematica simply repeats the operation you have specified, without changing anything.
|