HP 9g Graphing manual Relational Operators, Creating a New Program, Executing a Program

Page 29

The SWAP command swaps the contents in two memory variables.

Relational Operators

The relational operators that can be used in FOR loops and conditional branching are:

== (equal to), < (less than), > (greater than), (not equal to), (less than or equal to), (greater than or equal to).

Creating a New Program

1.Select NEW from the program menu and press [].

2.Select the calculation mode you want the program to run in and press

[].

3.Select one of the ten program areas (P0123456789) and press [].

4.Enter your program’s commands.

You can enter the calculator’s regular functions as commands.

To enter a program control instruction, press [ 2nd ] [ INST ] and make your selection.

To enter a space, press [ ALPHA ] [ SPC ].

5.A semicolon (;) indicates the end of a command. To enter more than one command on a command line, separate them with a semicolon. For example:

Line 1: INPUT A ; C = 0.5 × A ; PRINT ” C = ” , C ; END

You can also place each command or group of commands on a separate line, as follows. In this case, a trailing semicolon can be omitted.

Line 1: INPUT A ; C = 0.5 × A []

Line 2: PRINT ” C = ” , C ; END

Executing a Program

1.When you finish entering or editing a program, press [ CL/ESC ] to return

to the program menu, select RUN and press []. (Or you can press [ PROG ] in MAIN mode.)

2.Select the relevant program area and press [] to begin executing the program.

3.To re-execute the program, press [] while the program’s final result is on the display.

4.To abort the execution of a program, press [ CL/ESC ]. A message appears asking you to confirm that you want to stop the execution.

STOP : N Y

Press [ ] to move the cursor to Y and then press [].

E-29

Image 29
Contents Hp 9g Graphing Calculator Contents Statistical Calculations Other Functions x-1, , , ,x 2, xProgramming Contrast Adjustment Power SupplyDisplay Features Key Labels Changing ModesSelecting an Item from a Menu Inserting and Deleting Characters Using the 2nd and Alpha keysCursor Memory Recalling Previous Inputs and ResultsOrder of Operations Randi Accuracy and CapacityDMS Stat Error ConditionsDisplay Format Arithmetic CalculationPercentage Calculations Parentheses CalculationsRepeat Calculations Answer FunctionConverting Angular Units Logarithm and AntilogarithmFraction Calculation Hyperbolic and Inverse Hyperbolic functions Trigonometric and Inverse Trigonometric functionsCoordinate Transformations Mathematical FunctionsUnit Conversion Physics Constants User-generated Graphs Multi-statement functionsBuilt-in Function Graphs Zoom Function Graph ↔ Text Display and Clearing a GraphSuperimposing Graphs Trace FunctionSingle-Variable and Two-Variable Statistics Scrolling GraphsPlot and Line Function Process Capability Probability Distribution 1-Var Data Correcting Statistical DataQuad Regression CalculationLogical Operation Negative ExpressionsBasic Arithmetic Operations for Bases Program Control Instructions Before Using the Program AreaInput memory variable END Executing a Program Relational OperatorsCreating a New Program Display Result Command Using the Graph Function in ProgramsDebugging a Program Deleting a ProgramProgram Examples × 5 + 56 7 74 8 × 7 = × 5 M+ MRC × 7 2nd M MRC MRC CL / ESC Example Prog 1 CL / ESC + 10 × 8 2 = 12369 × 7532 × 2nd SCI / ENG 20 2nd ENG SYM + 0.15 2nd ENG SYM 55 2nd % 2nd ANS B/c 2 a b/c 2nd a b/c d/e 2nd 2nd DMS Cosh1.5+2 = 2nd HYP cos Sinh -17 = 2nd HYP 2nd sin 2nd R P Alpha Page Page Page 26 7 ! 7 4 ! = Math Math Math Math 27 7 ! 7 4 ! × 4 = 2nd 30 7 4 = × 2nd Const Graph 2nd e Example Range Graph Alpha X 2nd x 3 + Alpha X x 2 Graph Alpha X + Graph cos Trace 2nd X Y Page Example 2nd Statvar Graph Example Example 2nd Statvar Example Nd Statvar Graph 2nd Statvar 573 Data 101 61 117 67 2nd Statvar Graph Nd Statvar 143 31 10 = 1F16 = 11111 2 = 37 Mode Dhbo Mode 2 dhbo Dhbo 4777 Mode 2 dhbo Dhbo 1234 + IE if Example RUN Seconds Seconds Example X 2 7 X + 5 = 0 X 1 = 2.5 , X 2 = 25 X 2 70 X + 49 = 0 X = 2 + 2 X + 5 = 0 X 1 = 1 + 2 i , X 2 = 1 2 When the message 1 AN, 2 SN appears on the display, you can = 3 , D = 2, N = 12 S N = S 12 = Seconds RUN Page Example Example RUN 486 Seconds Example Edit Dhbo 11011 = 10 C = 130 , D = 2nd RCL CL/ESC
Related manuals
Manual 2 pages 9.13 Kb