230
Programming
specified as the first argument. The default is G0, which
always contains the currently displayed screen. Thus, the
full syntax for the PIXON command is:
PIXON
([
G
,]
xposition,
yposition
[
,color
]);
Some built-in commands employ an alternate syntax,
whereby function arguments do not appears in
parentheses. Examples include
RETURN
and
RANDOM
.
Program
Structure
Programs can contain any number of subroutines (each of
which is a function or procedure). Subroutines start with
a heading consisting of the name, followed by
parentheses that contain a list of parameters or
arguments, separated by commas. The body of a
subroutine is a sequence of statements enclosed within a
BEGIN END; pair. For example, the body of a simple
program, called
MYPROGRAM
, could look like this:
EXPORT
MYPROGAM()
BEGIN
PIXON(1,1)
;
END
;
Comments
When a line of a program begins with two slashes, //,
the rest of the line will be ignored. This allows the
programmer to insert comments in the program:
EXPORT
MYPROGAM()
BEGIN
PIXON(1,1
);
//
This line is just a comment.
END
;
Summary of Contents for 39gII
Page 1: ...HP 39gII graphing calculator user s guide Edition1 Part Number NW249 90001 ...
Page 2: ...Printing History Edition 1 November 201 1 ...
Page 32: ...22 Getting started ...
Page 58: ...48 Apps and their views ...
Page 70: ...60 Function app ...
Page 80: ...70 Solve app ...
Page 136: ...126 Polar app ...
Page 140: ...130 Sequence app ...
Page 148: ...138 Finance app ...
Page 152: ...142 Linear Solver app ...
Page 218: ...208 Matrices ...
Page 226: ...216 Notes and Info ...
Page 238: ...228 Variables and memory management ...
Page 318: ...308 Programming ...
Page 340: ...330 Reference information ...
Page 346: ...vi Product Regulatory Information ...