try Mots clef Scilab comparison

Manuel Scilab >> Scilab > Mots clef Scilab > while

while

mot-clé utilisé dans une structure while ... end

Séquence d'appel

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

Description

Notes:

Attention : le nombre de caractères constituant le corps d'une instruction conditionnelle (if while for ou select/case) est limité à 16k..

Exemples

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

Voir Aussi

try Mots clef Scilab comparison