![HP 50G Скачать руководство пользователя страница 690](http://html.mh-extra.com/html/hp/50g/50g_user-manual_156571690.webp)
Page 21-43
Press
@@@OK@@@
to cancel message box output.
Message box output without units
Let’s modify the program
@@@p@@@
once more to eliminate the use of units
throughout it. The unit-less program will look like this:
«
“
Enter V,T,n [S.I.]:
“
{
“
:V:
:T:
:n:
“
{2 0} V }
INPUT OBJ
→ →
V T n
«
V DTAG
T DTAG
n DTAG
→
V T n
«
“
V=
”
V
→
STR +
“
”
+
“
T=
”
T
→
STR +
“
”
+
“
n=
”
n
→
STR +
“
”
+
‘
8.31451*n*T/V
‘
EVAL
→
STR
“
p=
”
SWAP + + + + MSGBOX
» » »
And when run with the input data V = 0.01, T = 300, and n = 0.8, produces
the message box output:
Press
@@@OK@@@
to cancel the message box output.
Relational and logical operators
So far we have worked mainly with sequential programs. The User RPL
language provides statements that allow branching and looping of the program
flow. Many of these make decisions based on whether a logical statement is
true or not. In this section we present some of the elements used to construct
such logical statements, namely, relational and logical operators.
Relational operators
Relational operators are those operators used to compare the relative position
of two objects. For example, dealing with real numbers only, relational
Содержание 50G
Страница 1: ...HP g graphing calculator user s guide H Edition 1 HP part number F2229AA 90006 ...
Страница 130: ...Page 2 70 The CMDS CoMmanDS menu activated within the Equation Writer i e O L CMDS ...
Страница 177: ...Page 4 10 Function DROITE is found in the command catalog N Using EVAL ANS 1 simplifies the result to ...
Страница 206: ...Page 5 29 LIN LNCOLLECT POWEREXPAND SIMPLIFY ...
Страница 257: ...Page 7 20 ...
Страница 383: ...Page 11 56 Function KER Function MKISOM ...
Страница 715: ...Page 21 68 Whereas using RPL there is no problem when loading this program in algebraic mode ...
Страница 858: ...Page L 5 ...