Trident Help

RPN Advanced 42 manual · Chapter 8 of 18

ALPHA mode and names

Type letters with the top-row menu keys, build variable names and labels, and use the ALPHA register.

8.1Turn ALPHA mode on and type letters#

Press shift ENTER to turn ALPHA mode on. The display shows a cursor and the top row now offers six groups of letters: ABCDE, FGHI, JKLM, NOPQ, RSTUV and WXYZ. Press the top-row key of the group, then the key of the letter inside that group.

ALPHA mode: the six menu keys pick a group of letters. The display shows: _ / A-E F-I J-M N-Q R-V W-Z.
ALPHA mode: the six menu keys pick a group of letters.
After picking the first group the five letters A to E appear on the menu keys. The display shows: _ /  A   B   C   D   E     .
After picking the first group the five letters A to E appear on the menu keys.
  1. ⇧ALPHAENTER (ALPHA)
  2. LN (group R S T U V)
  3. 1/x (second letter, S)
Typing the letter S
Example 8.1

Type a short word

  1. Turn on ALPHA and type B (A group, second key), then S (R group, second key).

    ⇧ALPHAENTERΣ+1/xLN1/x
Result of the example "Type a short word" The display shows: BS_ / A-E F-I J-M N-Q R-V W-Z.
You should seeBS_
Example 8.2

Digits and symbols

  1. The digits type digits. In ALPHA mode the swap key types a space and the add key a plus sign.

    ⇧ALPHAENTERΣ+Σ+42+
Result of the example "Digits and symbols" The display shows: A42+_ / A-E F-I J-M N-Q R-V W-Z.
You should seeA42+
Example 8.3

Lowercase letters

  1. Press shift before the letter key to get lowercase.

    ⇧ALPHAENTERΣ+⇧Σ−Σ+
Result of the example "Lowercase letters" The display shows: a_ / A-E F-I J-M N-Q R-V W-Z.
You should seea_

8.2Edit and leave ALPHA mode#

← deletes the last character. ENTER or EXIT leaves ALPHA mode. If you are already in the middle of a group, EXIT first goes back to the group list.

Example 8.4

Delete a character

  1. Type AB, then press backspace.

    ⇧ALPHAENTERΣ+Σ+Σ+1/x←
Result of the example "Delete a character" The display shows: A_ / A-E F-I J-M N-Q R-V W-Z.
You should seeA_

8.3The ALPHA register and AVIEW#

Text you type in ALPHA mode away from a prompt goes to the ALPHA register, which holds up to 44 characters. Show it with AVIEW from the PGM.FCN menu (shift 3, fifth key). Typing again after leaving starts a new text. Programs use the register to show messages with AVIEW or PROMPT.

Example 8.5

Type and show a message

  1. Turn on ALPHA and type HI, then ENTER.

    ⇧ALPHAENTER1/x√x1/xLOGENTER
  2. Open PGM.FCN and press AVIEW (fifth key).

    ⇧PGM.FCN3LN
Result of the example "Type and show a message" The display shows: HI / LBL RTN INP VEW AVW XEQ.
You should seeHI

8.4Work with text: ASTO, ATOX, XTOA, POSA, ALENG, AROT, ASHF#

Text can be stored and taken apart. In ALPHA mode, shift STO is ASTO: it stores the first six characters of the ALPHA register in a register or variable as ALPHA data, and RCL brings that text back onto the stack (it shows in quotes). Shift RCL (ARCL) appends a value, or stored text, to the ALPHA register. Arithmetic on text gives Alpha Data Is Invalid.

Example 8.6

Store text in a register

  1. Turn on ALPHA, type HELLO, then shift STO (ASTO) 01.

    ⇧ALPHAENTER1/x√xΣ+LN√x√x√x√xLOG1/x⇧COMPLEXSTO01
  2. Recall register 01.

    RCL01
Result of the example "Store text in a register" The display shows: y: 0.0000 / x: "HELLO".
You should seex: "HELLO"

The other text functions run by name (XEQ, shift ENTER, the name, ENTER) or from CATALOG ▸ FCN, and in programs:

FunctionWhat it does
ALENGPuts the number of characters in ALPHA into X.
ATOXRemoves the first character of ALPHA and puts its character code in X (0 when ALPHA is empty).
XTOAAppends the character whose code is in X; with text in X, appends the text; with a matrix, each element.
POSAFinds the character code (or the text) in X inside ALPHA: X becomes its position, counting from 0, or −1.
AROTRotates ALPHA by X characters: to the left when X is positive, to the right when negative.
ASHFRemoves the first six characters of ALPHA.
AON / AOFFTurn ALPHA mode on or off from a program.
Example 8.7

Count the characters

  1. Type HELLO in ALPHA, then XEQ ALENG.

    ⇧ALPHAENTER1/x√xΣ+LN√x√x√x√xLOG1/xENTERXEQ⇧ALPHAENTERΣ+Σ+√x√xΣ+LNLOGΣ+1/x1/xENTER
Result of the example "Count the characters" The display shows: y: 0.0000 / x: 5.0000.
You should seex: 5.0000
Example 8.8

Character code of the first letter

  1. Type ABC, then XEQ ATOX: A is code 65, and ALPHA keeps BC.

    ⇧ALPHAENTERΣ+Σ+Σ+1/xΣ+√xENTERXEQ⇧ALPHAENTERΣ+Σ+LN√xLOG1/xXEQ1/xENTER
Result of the example "Character code of the first letter" The display shows: y: 0.0000 / x: 65.0000.
You should seex: 65.0000
Example 8.9

Append a character by its code

  1. Type AB, key 67 (the code of C), XEQ XTOA, then AVIEW.

    ⇧ALPHAENTERΣ+Σ+Σ+1/xENTER67XEQ⇧ALPHAENTERXEQ1/xLN√xLOG1/xΣ+Σ+ENTER⇧PGM.FCN3LN
Result of the example "Append a character by its code" The display shows: ABC / LBL RTN INP VEW AVW XEQ.
You should seeABC
Example 8.10

Find a letter

  1. Type HELLO, key 76 (L), XEQ POSA: the first L is at position 2.

    ⇧ALPHAENTER1/x√xΣ+LN√x√x√x√xLOG1/xENTER76XEQ⇧ALPHAENTERLOG√xLOG1/xLN1/xΣ+Σ+ENTER
Result of the example "Find a letter" The display shows: y: 0.0000 / x: 2.0000.
You should seex: 2.0000
Example 8.11

Rotate the text

  1. Type ABCDE, key 2, XEQ AROT, then AVIEW.

    ⇧ALPHAENTERΣ+Σ+Σ+1/xΣ+√xΣ+LOGΣ+LNENTER2XEQ⇧ALPHAENTERΣ+Σ+LNΣ+LOG1/xLN√xENTER⇧PGM.FCN3LN
Result of the example "Rotate the text" The display shows: CDEAB / LBL RTN INP VEW AVW XEQ.
You should seeCDEAB

8.5Names for variables and labels#

At prompts that accept a name (STO, RCL, XEQ, GTO, LBL, VIEW, INPUT, CLV and others) press shift ENTER to start ALPHA, type the name, and press ENTER. For MVAR and DIM the ALPHA mode starts automatically. Names are limited to seven characters.

HP-42S is a trademark of HP Inc.. Trident Calculator is an independent product by South View Studios and is not affiliated with, sponsored by or endorsed by HP. The name is used only to describe the kind of calculator this model resembles; Trident's names, keys, display, fonts and software are its own clean-room design.