Full Command and Function Reference 3-27
CHINREM
CAS: Solve a system of simultaneous polynomial congruences in the ring Z[x].
CHOLESKY
CAS: Return the Cholesky factorization of a square matrix.
CHOOSE
Type: Command
Description: Create User-Defined Choose Box Command: Creates a user-defined choose box.
CHOOSE creates a standard single-choice choose box based on the following specifications:
Variable Function
“prompt”
A message that appears at the top of choose box. If “prompt” is an
empty string (“”), no message is displayed.
{c
1
… c
n
}
Definitions that appear within the choose box. A choice definition
(c
x
) can have two formats.
• obj, any object
• { obj
display
obj
result
}, the object to be displayed followed by the result
returned to the stack if that object is selected.
n
pos
The position number of an item definition. This item is highlighted
when the choose box appears. If n
pos
= 0, no item is highlighted, and
the choose box can be used to view items only.
If you choose an item from the choose box and press OK, CHOOSE returns the result (or the
object itself if no result is specified) to level 2 and 1 to level 1. If you press −, CHOOSE
returns 0. Also, if n
pos
= 0, CHOOSE returns 0.
Access: !°L
IN CHOOSE ( °is the left-shift of the Nkey).
Input/Output:
L3/A1 L2/A2 L1/A3 L2/I1 L1/I2
“prompt” { c
1
... c
n
} n
pos
→
obj or result “1”
“prompt” { c
1
... c
n
} n
pos
→
“0”
L = Level; A = Argument; I = item
See also: INFORM, NOVAL
CHR
Type: Command
Description: Character Command: Returns a string representing the character corresponding to the character
code n.
The character codes are an extension of ISO 8859/1. Codes 128 through 160 are unique to the
hp49g+/hp48gII.
The default character ! is supplied for all character codes that are not part of the normal
hp49g+/hp48gII display character set.
Character code 0 is used for the special purpose of marking the end of the command line.
Attempting to edit a string containing this character causes the error Can
't Edit Null Char.
You can use the CHARS application to find the character code for any character used by the
hp49g+/hp48gII. See “Additional Character Set” in Appendix D of the hp49g+/hp48gII User
's
Guide.
Access: !°
TYPE L CHR ( °is the left-shift of the Nkey).