An AbacusEducalc.net - HP Calculator
Jump to: What's new here? Comments & Talk Back
Home » HP 9g » 

HP9G Programming

HP 9g programming language is BASIC with syntax mixed in from C, like for (i=0;i<10;i++) { ... } and so on. HP9G has 400 steps of capacity for a basic program.  It has a feature set is good for a scientific model, with trigs, hyperbolics, stats, regression, unit conversions, physical constants, fractions and number bases.

Programs are entered in the Program by pressing {mode} and then select "3.PROG" option.  In this menu you can create a new program (0), edit an existing one (2), delete one program (3), run a program (1), and trace a program and (4) Tracing is particularly useful when debugging a program because program execution halts after each instruction, which is displayed until {=} is pressed. The RCL menu can be used to view the contents of any standard variable). There can be up to ten programs ~ program 0 through program 9.  Program lines are not numbered, but in these learning modules line numbers have been included to help you enter the program and locate a command. Remember that more than one command can be entered into the same line by separating them with a semicolon. Editing a program is similar to editing the entry line. Just bear in mind that : does not clear the current line, but exits the Program Edit mode instead.

To execute the programs, press the {Prog} and enter the program number 0-9 that is to run.

Here are some HP 9g Programming examples:

HP 9 G Program Example: TVM Solve

HP 9g Writing a Small Program


Mail this pageMail this page

Retailers
India Indonesia Malaysia Philippines Singapore Thailand

Stay current by subscribing to our free calculator digest

HP Calc Heritage

Note: All prices quoted on this site does not include taxes and tariffs. Actual prices may vary. Check with your nearest resellers for local pricing.