Loop Commands - HP 39g+ User Manual

Graphing calculator
Hide thumbs Also See for 39g+:
Table of Contents

Advertisement

→PLOT
REPLACE
SUB
ZEROGROB

Loop commands

DO...UNTIL ...END
16-22
Puts graph from graphicname into the Plot view display.
→PLOT graphicname:
Replaces portion of graphic in graphicname1 with
graphicname2, starting at position. REPLACE also
works for lists and matrices.
REPLACE
graphicname1;(position);graphicname2:
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):
Creates a blank graphic with given width and height,
and stores it in graphicname.
ZEROGROB graphicname;width;height:
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 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
A:
DO A + 1
UNTIL A == 12
END
A
Programming

Advertisement

Table of Contents
loading

Table of Contents