HP (Hewlett-Packard) F2215AA#ABA Calculator User Manual


 
14-8 Programming Techniques
Example:
The "Normal and Inverse–Normal Distributions" program in chapter 16 uses the
x<y? conditional in routine T:
Line T009 calculates the correction for X
guess
. Line T013 compares the absolute
value of the calculated correction with 0.0001. If the value is less than 0.0001 ("Do
If True"), the program executes line T014; if the value is equal to or greater than
0.0001, the program skips to line T015.
Keys: Display:
In RPN mode
 ÕÕ(<)

In ALG mode
ÕÕ(<)

Program Lines:
(In RPN mode)
Description
.
.
.
 Calculates the correction for X
guess
.
  Adds the correction to yield a new X
guess
.
 
 
 < Tests to see if the correction is significant.
   Goes back to start of loop if correction is significant.
Continues if correction is not significant.
 
  Displays the calculated value of X.
.
.
.