HP 35s Scientific manual Program Lines Description RPN mode, 14-8Programming Techniques

Models: 35s Scientific

1 382
Download 382 pages 30.06 Kb
Page 218
Image 218

Keys:Display:

In RPN mode ÕÕ(<)

In ALG mode ÕÕ(<)

Example:

The "Normal and Inverse–Normal Distributions" program in chapter 16 uses the x<y? conditional in routine T:

Program Lines:

Description

(In RPN mode)

 

.

 

.

 

.

 

 

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.

.

 

.

 

.

 

Line T009 calculates the correction for Xguess. 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.

14-8Programming Techniques

Page 218
Image 218
HP 35s Scientific manual Program Lines Description RPN mode, 14-8Programming Techniques