EasyManuals Logo

HP 50G User Manual

HP 50G
887 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #701 background imageLoading...
Page #701 background image
Page 21-54
Commands involved in the START construct are available through:
„°@)@BRCH@ @)START @START
Within the BRCH menu („°@)@BRCH@) the following keystrokes are available
to generate START constructs (the symbol indicates cursor position):
Θ @START: Starts the START…NEXT construct: START NEXT
Θ @START: Starts the START…STEP construct: START STEP
The START…NEXT construct
The general form of this statement is:
start_value end_value START program_statements NEXT
Because for this case the increment is 1, in order for the loop to end you should
ensure that start_value < end_value. Otherwise you will produce what
is called an infinite (never-ending) loop.
Example – calculating of the summation S defined above
The START…NEXT construct contains an index whose value is inaccessible to
the user. Since for the calculation of the sum the index itself (k, in this case) is
needed, we must create our own index, k, that we will increment within the loop
each time the loop is executed. A possible implementation for the calculation of
S is the program:
« 0. DUP n S k « 0. n START k SQ S + 1. k STO+ S STO
NEXT S S TAG » »
Type the program in, and save it in a variable called @@@S1@@@.
Here is a brief explanation of how the program works:

Table of Contents

Other manuals for HP 50G

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 50G and is the answer not in the manual?

HP 50G Specifications

General IconGeneral
Digits33 digits
Battery typeCR2032
TypeScientific
Form factorPocket
Weight and Dimensions IconWeight and Dimensions
Weight220 g
Dimensions (WxDxH)87 x 184 x 23.5 mm

Related product manuals