EasyManuals Logo
Home>HP>Calculator>35s

HP 35s User Manual

HP 35s
382 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 #227 background imageLoading...
Page #227 background image
Programming Techniques 14-17
This routine is an example of an infinite loop. It can be used to collect the initial
data. After entering the three values, it is up to you to manually interrupt this loop by
pressing
label line number to execute other routines.
Conditional Loops (GTO)
When you want to perform an operation until a certain condition is met, but you
don't know how many times the loop needs to repeat itself, you can create a loop
with a conditional test and a GTO instruction.
For example, the following routine uses a loop to diminish a value A by a constant
amount B until the resulting A is less than or equal to B.
Program lines:
(In RPN mode)
Description:
 
 
 
  It is easier to recall A than to remember where it is in the
stack.
  Calculates AB.
  Replaces old A with new result.
  Recalls constant for comparison.
  Is B < new A?
   Yes: loops to repeat subtraction.
  No: displays new A.
 
Checksum and length: 2737 33

Table of Contents

Other manuals for HP 35s

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 35s and is the answer not in the manual?

HP 35s Specifications

General IconGeneral
TypeScientific
Form factorPocket
Product colorBlack
Digits14 digits
Display number of lines2 lines
Keyboard typeAlphanumeric
Menus and promptsYes
Weight and Dimensions IconWeight and Dimensions
Dimensions (WxDxH)157.9 x 18 x 82 mm

Related product manuals