<< try Scilab keywords TMPDIR >>

Scilab help >> Scilab > Scilab keywords > while

while

while キーワード

説明

while 構文. "end"で終わる必要があります.

while expr ,instructions,...[,else instructions], end

while expr do instructions,...[,else instructions], end

while expr then instructions,...[,else instructions], end

注意:

警告: 条件付き命令(if while for または select/case)の本文を定義するために使用可能な 文字数は 16 k以下とする必要があります.

例

e=1; a=1; k=1;
while norm(a-(a+e),1) > %eps, e=e/2; k=k+1; end
e,k

参照

<< try Scilab keywords TMPDIR >>