Do[Print[x^2], {x,1,5,1}]
1 : initial value
5 : final value
1 : step size, default values is one.
Do[WriteString[$Output, x , ", "], {x, 3, 7, 1}]
This command make string. $Output command is very useful.
'Mathematica' 카테고리의 다른 글
List Manupulation (0) | 2016.01.09 |
---|---|
Transpose 기능 이용하기 (0) | 2015.11.17 |
Ordinary Differential Equation with Mathematica (0) | 2015.08.01 |
ReadList (0) | 2015.08.01 |
Data fitting with fixed value (0) | 2015.08.01 |