HP (Hewlett-Packard) HP 33s ユーザーズマニュアル
13–16
Programming Techniques
Use the above program to see the different forms of fraction display:
Keys:
(In ALG mode)
Display:
Description:
X
F
#@
value
value
Executes label F; prompts for a
fractional number (V).
fractional number (V).
2.53
g
@
value
value
Stores 2.53 in V; prompts for
denominator (D).
denominator (D).
16
g
)
Stores 16 as the /c value.
Displays message, then the
decimal number.
Displays message, then the
decimal number.
g
!
+d
+d
Message indicates the fraction
format (denominator is no greater
than 16), then shows the fraction.
d
format (denominator is no greater
than 16), then shows the fraction.
d
indicates that the numerator is
"a little below" 8.
g
!
+c
+c
Message indicates the fraction
format (denominator is factor of
16), then shows the fraction.
format (denominator is factor of
16), then shows the fraction.
g
%
+ c
+ c
Message indicates the fraction
format (denominator is 16), then
shows the fraction.
format (denominator is 16), then
shows the fraction.
g
| y
| y
{}
0
)
Stops the program and clears flag
10
10
Loops
Branching backwards — that is, to a label in a previous line — makes it possible
to execute part of a program more than once. This is called looping.
to execute part of a program more than once. This is called looping.
"!
"!
"! !
!