236
Programming
2. Press
three times
to see the
FOR
loop
finish.
3. After the program terminates, you can resume any
other activity with the HP39gII.
Regardless of where you start the program, all programs
run in Home. What you see will differ slightly depending
on where you started the program. If you start the
program from Home, the HP 39gII displays the contents
of
Ans
(Home variable containing the last result), when
the program has finished. If you start the program from
the Program catalog using the
key, the HP 39gII
returns you to the Program catalog when the program
ends.
Debug a
Program
You cannot run a program that contains syntax errors.
You must first correct all the syntax errors before
executing the program.
If there is an error detected at run-time, such as division
by zero, the program will stop and you will see an error
message. If the program does not do what you expect it
to do, or if there is a run-time error detected by the system,
you can execute the program step by step, and look at the
values of local variables. To do that, type
debug(
MYPROGRAM
()) on the edit line.
1. Start the debug tool for
the program you just
wrote.
HAA
SA
(for alpha lock)
debug
lS
CMDS
Select MYPROGRAM
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 ...