16-22
Programming
→
PLOT
Puts graph from
graphicname
into the Plot view display.
→
PLOT
graphicname
:
REPLACE
Replaces portion of graphic in
graphicname1
with
graphicname2
,
s
tarting at
position
.
REPLACE
also
works for lists and matrices.
REPLACE
graphicname1
;
(
position
)
;
graphicname2
:
SUB
Extracts a portion of the named graphic (or list or matrix),
and stores it in a new variable,
name
. The portion is
specified by
position
and
positions.
SUB
name
;
graphicname
;
(
position
)
;
(
positions
)
:
ZEROGROB
Creates a blank graphic with given
width
and
height
,
and stores it in
graphicname
.
ZEROGROB
graphicname
;
width
;
height
:
Loop commands
Loop hp allow a program to execute a routine repeatedly.
The hp 39g+ has three loop structures. The example
programs below illustrate each of these structures
incrementing the variable A from 1 to 12.
DO…UNTIL …END
Do
...
Until
...
End
is a loop command that executes the
loop-clause
repeatedly until
test-clause
returns a true
(nonzero) result. Because the test is executed
after
the
loop-clause, the loop-clause is always executed at least
once. Its syntax is:
DO
loop-clause
UNTIL
test-clause
END
1
X
A:
DO A + 1
X
A
UNTIL A == 12
END
Содержание 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: ......