Programming
269
EXPORT DRAWPATTERN()
BEGIN
LOCAL xinc,yinc,color;
STARTAPP("Function");
RECT();
xincr :=
(Xmax - Xmin)/254
;
yincr :=
(Ymax - Ymin)/110
;
FOR
X
FROM
Xmin
TO
Xmax
STEP
xincr
DO
FOR
Y
FROM
Ymin
TO
Ymax
STEP
yincr
DO
color :=
FLOOR(X^2+Y^2) MOD 4;
PIXON(X,Y,color)
;
END;
END;
FREEZE;
END;
REPEAT…UNTIL…
Syntax:
REPEAT
commands
UNTIL
test
;
Repeats the sequence of
commands
until
test
is true (non
0).
This code prompts for a positive value for SIDES,
modifying an earlier program in this chapter.
Example:
EXPORT SIDES;
EXPORT GETSIDES()
BEGIN
REPEAT
INPUT(SIDES,"Die Sides","N = ","Enter
num sides",2)
;
UNTIL SIDES>0;
END;
WHILE…DO…END
Syntax:
WHILE
test
DO
commands
END
;
Содержание 39gII
Страница 1: ...HP 39gII graphing calculator user s guide Edition1 Part Number NW249 90001 ...
Страница 2: ...Printing History Edition 1 November 201 1 ...
Страница 32: ...22 Getting started ...
Страница 58: ...48 Apps and their views ...
Страница 70: ...60 Function app ...
Страница 80: ...70 Solve app ...
Страница 132: ...122 Parametric app your own table and the split screen functionality available in the Function app ...
Страница 136: ...126 Polar app ...
Страница 140: ...130 Sequence app ...
Страница 148: ...138 Finance app ...
Страница 152: ...142 Linear Solver app ...
Страница 218: ...208 Matrices ...
Страница 226: ...216 Notes and Info ...
Страница 238: ...228 Variables and memory management ...
Страница 318: ...308 Programming ...
Страница 340: ...330 Reference information ...
Страница 346: ...vi Product Regulatory Information ...