HP 48gII Graphing, 50g Graphing manual Choose, Chr, Command Result

Models: 50g Graphing 48gII Graphing

1 693
Download 693 pages 23.18 Kb
Page 155
Image 155

Example: Find the Cholesky factorization of:

1 1

1 5

 

 

 

 

 

 

 

 

1 1

 

 

 

CHOLESKY

 

 

Command:

 

 

 

1 5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 1

 

 

 

 

 

Result:

 

0 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CHOOSE

Command

 

 

 

 

Type:

 

 

 

 

Description:

Create UserDefined Choose Box Command: Creates a

userdefined choose box.

 

CHOOSE creates a standard singlechoice 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.

 

 

 

 

 

 

 

 

 

 

{c1 cn}

 

Definitions that appear within the choose box. A choice definition

 

 

 

 

 

 

(cx) can have two formats.

 

 

obj, any object

{ objdisplay objresult }, the object to be displayed followed by the result returned to the stack if that object is selected.

npos

The position number of an item definition. This item is highlighted

 

when the choose box appears. If npos = 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 npos = 0, CHOOSE returns 0.

Access:

!°LIN CHOOSE

 

 

( °is the leftshift of the Nkey).

 

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L3/A1

L2/A2

L1/A3

 

L2/I1

L1/I2

 

 

 

 

 

 

 

 

 

 

 

“prompt”

{ c1

... cn }

npos

obj or result

“1”

 

 

“prompt”

{ c1

... cn }

npos

 

“0”

 

 

 

 

 

 

 

 

 

L = Level; A = Argument; I = item

Example: CHOOSE with the following three lines as input would produce a threeline choose box:

"Select a Program"

{{ "Pie Chart" «PIE» } { "Inverse Function" «ROOTR» }

{"Animate Taylor" «TSA» } }

1

See also: INFORM, NOVAL

CHR

Type: Command

Description: Character Command: Returns a string representing the character corresponding to the character code n.

Full Command and Function Reference 335

Page 155
Image 155
HP 48gII Graphing, 50g Graphing manual Choose, Chr, Command Result