![HP 50G User Manual Download Page 680](http://html.mh-extra.com/html/hp/50g/50g_user-manual_156571680.webp)
Page 21-33
commands
“Operation cancelled” MSGBOX
will show a message box
indicating that the operation was cancelled.
Identifying output in programs
The simplest way to identify numerical program output is to “tag” the program
results. A tag is simply a string attached to a number, or to any object. The
string will be the name associated with the object. For example, earlier on,
when debugging programs INPTa (or INPT1) and INPT2, we obtained as
results tagged numerical output such as
:a:35.
Tagging a numerical result
To tag a numerical result you need to place the number in stack level 2 and the
tagging string in stack level 2, then use the
→
TAG function (
„ °
@)TYPE@ @
TAG
) For example, to produce the tagged result
B:5.
, use:
5`‚Õ~b„ °
@)TYPE@ @
TAG
Decomposing a tagged numerical result into a number and a tag
To decompose a tagged result into its numerical value and its tag, simply use
function OBJ
(
„°
@)TYPE@ @OBJ
@
). The result of decomposing a tagged
number with
→
OBJ is to place the numerical value in stack level 2 and the tag
in stack level 1. If you are interested in using the numerical value only, then
you will drop the tag by using the backspace key
ƒ
. For example,
decomposing the tagged quantity
B:5
(see above), will produce:
“De-tagging” a tagged quantity
“De-tagging” means to extract the object out of a tagged quantity. This
function is accessed through the keystroke combination:
„ °
@)TYPE@
L
@DTAG
. For example, given the tagged quantity
a:2
, DTAG returns the
numerical value 2.
Summary of Contents for 50G
Page 1: ...HP g graphing calculator user s guide H Edition 1 HP part number F2229AA 90006 ...
Page 130: ...Page 2 70 The CMDS CoMmanDS menu activated within the Equation Writer i e O L CMDS ...
Page 206: ...Page 5 29 LIN LNCOLLECT POWEREXPAND SIMPLIFY ...
Page 257: ...Page 7 20 ...
Page 383: ...Page 11 56 Function KER Function MKISOM ...
Page 715: ...Page 21 68 Whereas using RPL there is no problem when loading this program in algebraic mode ...
Page 858: ...Page L 5 ...