HP 49g Graphing Calculator User Manual

Page 187

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

Chapter 10

Introduction to programming

Contents

Getting started................................................................................................. 10-2

Creating, saving, and running a program....................................................10-3

The programming menu..........................................................................10-4

Algebraic and RPN modes............................................................................. 10-5

Using fimctions that require argmnents................................................ 10-5

Handling data...................................................................................................10-6

Input data.................................................................................................... 10-6

Output data................................................................................................ 10-6

How a program flows..................................................................................... 10-6

Nested procedmes....................................................................................10-7

Working with variables................................................................................... 10-8

Using local variables.................................................................................. 10-8

Setting variables......................................................................................... 10-8

Setting a local variable to the result of a calculation. 10-10

Using global variables.............................................................................10-11

Example.....................................................................................................10-11

Looping and branching................................................................................10-13

Comparison functions............................................................................ 10-13

Conditional and looping structures...................................................... 10-13

Example.....................................................................................................10-14

Ti'apping errors..............................................................................................10-15

Example.....................................................................................................10-16

Introduction to programming

Page 10-1

Advertising