HP 9100B Operating & Programming Manual page 106

Hide thumbs Also See for 9100B:
Table of Contents

Advertisement

9
PROGRAMMING THE 91008
CONTINUED
PROGRAM KEYS- SUBROUTINES
n
n!
The formula used is: C k
=
k! (n
_
k)!
SIMPLIFIED FLOW CHART:
FINAL FLOW CHART:
I
k!
n!
n!
k!
(n
-
k)!
press CONT
.
..._ - - ,
t
CLEAR
(+
)e and
(+
)f
and STOP
,
enter n and
k,
press CONT
Store: n
~
(+
)e
k
~(+)f
1
~--
- - - - 1 - - t
k)
N!
:.
k!
I
Store k!
~
d
~i
+
(n
-
k)!
=
C
,
Recall n
~--+-----~
n)
N!
-
----~--~
..
~
n!
Subroutine
--
/ )
N!
..
( )
Recall k!
Divide n!
/
k!
Store
~
d
,,
Recall
n
and
k
Subtract (n
-
k)
N!
~---+----t
n
-
k)
---1-~~
(n -
k)!
Recall
n!/
k!
Divide:
n!/
k!
+
(n
-
k)!
=
C
END
(Display)
~------J

Advertisement

Table of Contents
loading

Table of Contents