Programming
16-23
WHILE…
REPEAT…
END
While
...
Repeat
...
End
is a loop command that
repeatedly evaluates
test-clause
and executes
loop-clause
sequence if the test is true. Because the test-clause is
executed before the loop-clause, the loop-clause is not
executed if the test is initially false. Its syntax is:
WHILE
test-clause
REPEAT
loop-clause
END
1
X
A:
WHILE A < 12
REPEAT A+1
X
A
END
FOR…TO…STEP
...END
FOR
name
=
start-expression
TO
end-expression
[STEP
increment
];
loop-clause
END
FOR A=1 TO 12 STEP 1;
DISP 3;A:
END
Note that the STEP parameter is optional. If it is omitted,
a step value of 1 is assumed.
BREAK
Terminates loop.
BREAK:
Matrix commands
The matrix commands take variables M0–M9 as
arguments.
ADDCOL
Add Column. Inserts
values
into a column before
column_number
in the specified matrix
.
You enter the
values
as a vector. The values must be separated by
commas and the number of values must be the same as
the number of rows in the matrix
name
.
ADDCOL
name
;[
value
1
,...,value
n
];
column_number
:
ADDROW
Add Row. Inserts
values
into a row before
row_number
in
the specified matrix. You enter the values as a vector. The
values must be separated by commas and the number of
values must be the same as the number of columns in the
matrix
name
.
ADDROW
name
;[
value
1
,...,
value
n
];
row_number
:
Содержание 39g+
Страница 1: ...hp 39g graphing calculator user s guide H Edition 2 Part Number F2224 90001 ...
Страница 62: ...2 22 Aplets and their views 5 Display the functions in numeric form ...
Страница 78: ......
Страница 83: ...Sequence aplet 6 3 Select Cobweb Display the table 6 Display the table of values for this example ...
Страница 84: ......
Страница 116: ......
Страница 178: ......