Interactive Manual › Chapter 15
Chapter 15: CATALOG, Strings, Hyperbolic Functions
Browse the alphabetical CATALOG of every function and instruction, enter strings and store them in Str0–Str9, use the six string functions (Equ►String(, expr(, inString(, length(, String►Equ(, sub() and the six hyperbolic functions.
Browsing the TI-84 Plus CATALOGp. 266
The CATALOG is one long alphabetical list of every function and instruction on the calculator. Anything you cannot find on a key or in a menu can be pasted from here. This chapter then covers the two groups of functions that live only in the CATALOG: strings and hyperbolic functions.
What Is the CATALOG?p. 266
Almost every item in the CATALOG can also be reached from a menu or a key. These are the exceptions, so for them the CATALOG is the only route:
- The six string functions:
Equ►String(,expr(,inString(,length(,String►Equ(andsub(. - The six hyperbolic functions:
sinh(,cosh(,tanh(and their inversessinh⁻¹(,cosh⁻¹(,tanh⁻¹(. - The
solve(instruction, unless you are in the equation solver editor (see Chapter 2). - The inferential statistics functions, unless you are in an inferential stat editor (see Chapter 13).
GetCalc(, Get( and Send(. Other programming commands can be pasted there but are meant for use inside programs.GetCalc(, Get( and Send( exchange data over the calculator link cable. The emulator has no link port, so they have nothing to talk to here.Selecting an Item from the CATALOGp. 266
Press 2ndCATALOG to open the CATALOG. A ► marker in the first column is the selection cursor. Scroll with ▼︎ and ▲︎ until it points at the item you want, then press ENTER to paste that item at the cursor on the screen you came from.
The CATALOG is long, so alpha-lock is already on when it opens. Press a letter key and the cursor jumps to the first item that starts with that letter. Then scroll the rest of the way with ▼︎.
- Items that start with a digit are filed under the first letter after the digit. For example
2-PropZTest(is among the items that start with P. - Items that are symbols, such as
+,⁻¹,<and√(, come after the last item that starts with Z. To jump to the first symbol,!, press the θ letter, ALPHAθ. - From the first item, ▲︎ wraps around to the very last item. From the last item, ▼︎ wraps to the first.
abs( pastes the absolute value template on the home screen. In Classic mode you get the ordinary abs( text.Paste abs( from the CATALOG
The first item in the list is abs(, so it is the quickest one to try.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG. The cursor starts on the first item.2ndCATALOG
- Press ENTER to paste abs( on the home screen.ENTER
- Type the argument, negative five, and evaluate.(−)5ENTER
Jump to a letter and scroll
Find the string function length( by jumping to L, then scrolling.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG.2ndCATALOG
- Press the letter L. The cursor jumps to the first item starting with L.ALPHAL
- Scroll down four items to length(.▼︎▼︎▼︎▼︎
- Paste it, type the string HELLO in quotation marks, close the parenthesis and evaluate.ENTERALPHA"ALPHAHALPHAEALPHALALPHALALPHAOALPHA")ENTER
Items that start with a number
Items such as 2-PropZTest( are filed under the first letter after the digit.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG and jump to P. The first P item is Param.2ndCATALOGALPHAP
- Scroll down through the P items. Among them are the ones that begin with the digit 2, such as 2-PropZTest(, filed here under P for PropZ.▼︎▼︎▼︎
- Press CLEAR to leave the CATALOG without pasting anything.CLEAR
Symbols and wrap-around
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG. Press the θ letter (ALPHAθ) to jump to the first symbol item,
!.2ndCATALOGALPHAθ - Close the CATALOG and reopen it so the cursor is back on the first item. Press ▲︎ once: from the first item the cursor wraps to the very last one.CLEAR2ndCATALOG▲︎
- Press ▼︎: from the last item the cursor wraps back to the first.▼︎
Entering and Using Stringsp. 267
Strings let you work with text. This section covers what a string is, how to type one, how to keep it in a string variable, and the functions that work on strings.
What Is a String?p. 267
A string is a sequence of characters between quotation marks. In programs, strings serve two main purposes: they hold text to display, and they hold what the user types in at the keyboard.
The characters are the units that make up a string:
- Each digit, letter and space counts as one character.
- Each instruction or function name, such as
sin(orcos(, also counts as one character, because the calculator stores it as a single token.
Entering a Stringp. 267
To enter a string on a blank line on the home screen, or in a program:
- Press ALPHA" to type the opening quotation mark
". - Type the characters. You can mix digits, letters, function names and instruction names. Press ALPHA␣ for a blank space. To type several letters in a row, press 2ndA-LOCK to turn on alpha-lock.
- Press ALPHA" again to type the closing quotation mark. (The closing quote is optional before ENTER or STO►.)
- Press ENTER. On the home screen, the string appears on the next line without its quotation marks. If it is too long for the screen, an ellipsis
...at the end shows that it continues; press ▶︎ and ◀︎ to scroll through it.
"HELLO" HELLO
Enter the string HELLO
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Press ALPHA" to type the opening quotation mark.ALPHA"
- Type the letters H, E, L, L, O. Each letter is ALPHA plus the key that carries the green letter.ALPHAHALPHAEALPHALALPHALALPHAO
- Type the closing quotation mark.ALPHA"
- Press ENTER. The string is shown on the next line without quotes.ENTER
Enter a string with a space
A space is its own character, typed with ALPHA␣.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type the opening quote, then HI.ALPHA"ALPHAHALPHAI
- Press ALPHA␣ for a blank space, then type THERE and the closing quote.ALPHA␣ALPHATALPHAHALPHAEALPHARALPHAEALPHA"
- Press ENTER.ENTER
Type letters with alpha-lock
When you have several letters in a row, alpha-lock saves pressing ALPHA each time.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type the opening quote. Then press 2ndA-LOCK to switch alpha-lock on.ALPHA"2ndA-LOCK
- With alpha-lock on, just press the keys that carry H, E, L, L and O.^SIN))7
- Press + for the closing quote (it carries the " letter), then ALPHA to turn alpha-lock off.+ALPHA
- Press ENTER.ENTER
Storing Strings to String Variablesp. 268
Strings you want to keep go into string variables. You can use these in the string functions and instructions later.
String Variablesp. 268
The calculator has ten string variables, Str1 through Str9 and Str0. To reach them, press VARS, then choose 7:String… (press 7 or highlight it and press ENTER). The STRING menu appears.
Storing a String to a String Variablep. 268
- Type the string between quotation marks, with ALPHA" at each end.
- Press STO►.
- Press VARS7 to open the STRING menu.
- Pick the string variable to receive it,
Str1toStr9orStr0. It is pasted after the store arrow→. - Press ENTER. The stored string appears on the next line without quotation marks.
Store "HELLO" in Str1
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type the string HELLO between quotation marks.ALPHA"ALPHAHALPHAEALPHALALPHALALPHAOALPHA"
- Press STO► to start the store.STO►
- Open the STRING menu.VARS7
- Choose
1:Str1. It is pasted after the arrow.1 - Press ENTER to store it. The string appears below.ENTER
Displaying the Contents of a String Variablep. 269
To see what a string variable holds, paste its name from the STRING menu and press ENTER. The string is displayed on the next line.
Display the contents of Str1
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the STRING menu and choose
1:Str1.VARS71 - Press ENTER. The contents are shown.ENTER
String Functions and Instructions in the CATALOGp. 269
The string functions and instructions are available only from the CATALOG. Select them as described in Selecting an Item from the CATALOG. The sections below describe each of them, and also how to join strings together.
Displaying String Functions and Instructions in the CATALOGp. 269
This table lists the six string items in the order they appear among the other CATALOG items.
| CATALOG item | What it does |
|---|---|
Equ►String( | Converts an equation to a string. |
expr( | Converts a string to an expression and runs it. |
inString( | Returns the position of a character or substring. |
length( | Returns the number of characters in a string. |
String►Equ( | Converts a string to an equation. |
sub( | Returns part of a string as a string. |
Equ►String( is 3 items below the E jump, expr( is 4, inString( is 6 below the I jump, and length( is 4 below the L jump.Concatenationp. 270
To concatenate (join) strings, put + between them. Each piece can be a quoted string or a string variable. Chain as many as you need:
string1+string2+ string3...
Press ENTER to see the strings displayed as a single string.
Concatenate two string variables and a space
Str1 holds HELLO and Str2 holds WORLD. You will join them with a space between.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Paste Str1.VARS71
- Press +, then type a space between quotation marks.+ALPHA"ALPHA␣ALPHA"
- Press + and paste Str2.+VARS72
- Press ENTER. One combined string appears.ENTER
Selecting a String Function from the CATALOGp. 270
To paste a string function or instruction on the current screen, open the CATALOG with 2ndCATALOG, jump or scroll to the item, and press ENTER, as in Selecting an Item from the CATALOG. The tutorials that follow each use exactly this method.
Equ►String(p. 270
Equ►String(Yn,Strn)Converts the equation stored in the Y-VARS function Yn into a string and stores that string in the string variable Strn (Str1 to Str9, or Str0). The equation must already be stored in a Y= variable.
- With
X²+1in Y₁,Equ►String(Y₁,Str1)stores the textX²+1in Str1.
To paste the Y-variable, press VARS, move to the Y-VARS menu with ▶︎, choose 1:Function… and then 1:Y₁.
Convert Y₁ into a string
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG and jump to the E items.2ndCATALOGALPHAE
- Scroll down three items to
Equ►String(.▼︎▼︎▼︎ - Paste it on the home screen.ENTER
- Paste Y₁ through VARS, Y-VARS (press ▶︎), Function, 1.VARS▶︎11
- Press , and paste the destination, Str1, from the STRING menu.,VARS71
- Close the parenthesis and press ENTER.)ENTER
expr(p. 270
expr(string)Treats the characters of string as an expression and evaluates it. string can be a quoted string or a string variable.
expr("2+3")returns5.
Evaluate a string with expr(
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG, jump to E and scroll to
expr(.2ndCATALOGALPHAE▼︎▼︎▼︎▼︎ - Paste it, then paste Str1 from the STRING menu.ENTERVARS71
- Close the parenthesis and press ENTER. The text
2+3is evaluated.)ENTER
inString(p. 271
inString(string,substring[,start])Returns the position in string where substring first begins. start is an optional position at which to begin the search; it defaults to 1. string can be a quoted string or a string variable.
inString("HELLO","L")returns3.inString("HELLO","L",4)returns4: the search starts at the fourth character.
string does not contain substring, or if start is greater than the length of string, inString( returns 0.Find a letter with inString(
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG and jump to I.2ndCATALOGALPHAI
- Scroll down six items to
inString(.▼︎▼︎▼︎▼︎▼︎▼︎ - Paste it, then paste Str1.ENTERVARS71
- Press , and type the substring "L" in quotation marks.,ALPHA"ALPHALALPHA"
- Close the parenthesis and press ENTER. The first L is the third character.)ENTER
Start the search later with a start position
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Paste
inString(from the CATALOG and Str1.2ndCATALOGALPHAI▼︎▼︎▼︎▼︎▼︎▼︎ENTERVARS71 - Type the substring "L" and a start position of 4.,ALPHA"ALPHALALPHA",4
- Close the parenthesis and press ENTER. The search skips the first L and finds the second.)ENTER
When the substring is not found
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Search for "Z" in Str1.2ndCATALOGALPHAI▼︎▼︎▼︎▼︎▼︎▼︎ENTERVARS71,ALPHA"ALPHAZALPHA")
- Press ENTER. There is no Z, so the result is 0.ENTER
length(p. 271
length(string)Returns the number of characters in string, which can be a quoted string or a string variable. A function or instruction name such as sin( counts as a single character.
length("HELLO")returns5.- A string containing the
sin(token followed by1has length 2.
Count the characters in a string
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG, jump to L and scroll to
length(.2ndCATALOGALPHAL▼︎▼︎▼︎▼︎ - Paste it and then paste Str1.ENTERVARS71
- Close the parenthesis and press ENTER.)ENTER
A function name counts as one character
Here the string contains the single function token sin( followed by the digit 1: two characters, even though sin( looks longer.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Paste
length(from the CATALOG.2ndCATALOGALPHAL▼︎▼︎▼︎▼︎ENTER - Type a quotation mark, press SIN for
sin(, type 1 and the closing quote.ALPHA"SIN1ALPHA") - Press ENTER. The result is 2.ENTER
String►Equ(p. 271
String►Equ(string,Yn)Converts string into an equation and stores it in the Y-VARS function Yn. string can be a quoted string or a string variable. It is the inverse of Equ►String(.
String►Equ("X²",Y₁)stores the equationX²in Y₁.
Turn a string into an equation
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG and jump to T.
String►Equ(is a few items above the T items, so press ▲︎ four times.2ndCATALOGALPHAT▲︎▲︎▲︎▲︎ - Paste it, then paste Str1 from the STRING menu.ENTERVARS71
- Press , and paste Y₁ through VARS, Y-VARS, Function, 1.,VARS▶︎11
- Close the parenthesis and press ENTER. Y₁ now holds X².)ENTER
sub(p. 272
sub(string,begin,length)Returns a piece of string as a new string. begin is the position of the first character to take, and length is how many characters to take. string can be a quoted string or a string variable.
sub("HELLO",2,3)returnsELL.
Take part of a string with sub(
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG, jump to T and press ▲︎ three times to reach
sub(.2ndCATALOGALPHAT▲︎▲︎▲︎ - Paste it, then paste Str1.ENTERVARS71
- Enter the start position 2 and the length 3.,2,3)
- Press ENTER. Three characters starting at the second are returned.ENTER
Entering a Function to Graph during Program Executionp. 272
A program can ask the user to type a function, turn that text into an equation and graph it. The ingredients are Input (which stores what the user types as a string), String►Equ( (which stores the string in a Y= variable) and a graphing command.
:Input "ENTRY=", Str1 :String►Equ(Str1 ,Y₃) :DispGraph
X², at the ENTRY= prompt. It is stored in Y₃. See Chapter 16 for how to write and run programs, and String►Equ( for the conversion step.Hyperbolic Functions in the CATALOGp. 273
The hyperbolic functions are available only from the CATALOG. The table lists them in the order they appear there; each name is followed by what it computes.
| CATALOG item | Function |
|---|---|
cosh( | Hyperbolic cosine |
cosh⁻¹( | Hyperbolic arccosine |
sinh( | Hyperbolic sine |
sinh⁻¹( | Hyperbolic arcsine |
tanh( | Hyperbolic tangent |
tanh⁻¹( | Hyperbolic arctangent |
cosh( is 21 items below the C jump (cosh⁻¹( is 22), sinh( is 19 below the S jump (sinh⁻¹( is 20), and tanh( is 3 below the T jump (tanh⁻¹( is 4). The inverse items show a raised ⁻¹ in the list.sinh(, cosh(, tanh(p. 273
These are the hyperbolic sine, cosine and tangent. Each accepts a real number, an expression or a list. Given a list, it returns a list of results.
sinh(value)Hyperbolic sine of a real number, expression or list.
sinh(0)returns0.sinh(1)returns1.175201194.
cosh(value)Hyperbolic cosine of a real number, expression or list.
cosh(0)returns1.cosh(1)returns1.543080635.
tanh(value)Hyperbolic tangent of a real number, expression or list.
tanh(1)returns0.7615941559.
Compute a hyperbolic sine
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG and jump to S.2ndCATALOGALPHAS
- Scroll down 19 items to
sinh(.▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎ - Paste it and enter 1.ENTER1)
- Press ENTER.ENTER
Compute a hyperbolic cosine
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG and jump to C.2ndCATALOGALPHAC
- Scroll down 21 items to
cosh(.▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎ - Paste it and enter 1.ENTER1)
- Press ENTER.ENTER
Compute hyperbolic tangents of a list
The hyperbolic functions accept lists. Here tanh( is applied to the list {0, 1}.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG, jump to T and scroll to
tanh(.2ndCATALOGALPHAT▼︎▼︎▼︎ - Paste it, then type the list {0,1}.ENTER2nd{0,12nd})
- Press ENTER. A list of two results appears: 0 and 0.7615941559.ENTER
sinh⁻¹(, cosh⁻¹(, tanh⁻¹(p. 273
sinh⁻¹( is the hyperbolic arcsine, cosh⁻¹( the hyperbolic arccosine and tanh⁻¹( the hyperbolic arctangent. Each accepts a real number, an expression or a list. They undo sinh(, cosh( and tanh(.
sinh⁻¹(value)Hyperbolic arcsine of a real number, expression or list.
sinh⁻¹(1)returns0.881373587.
cosh⁻¹(value)Hyperbolic arccosine of a real number, expression or list. The value must be 1 or greater to get a real result.
cosh⁻¹(2)returns1.316957897.
tanh⁻¹(value)Hyperbolic arctangent of a real number, expression or list. The value must be between −1 and 1 to get a real result.
tanh⁻¹(0.5)returns0.5493061443.
Compute a hyperbolic arcsine
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG, jump to S and scroll down 20 items to
sinh⁻¹(.2ndCATALOGALPHAS▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎ - Paste it and enter 1.ENTER1)
- Press ENTER.ENTER
Compute a hyperbolic arccosine
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG, jump to C and scroll down 22 items to
cosh⁻¹(.2ndCATALOGALPHAC▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎▼︎ - Paste it and enter 2.ENTER2)
- Press ENTER.ENTER
Compute a hyperbolic arctangent
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the CATALOG, jump to T and scroll down four items to
tanh⁻¹(.2ndCATALOGALPHAT▼︎▼︎▼︎▼︎ - Paste it and enter 0.5.ENTER0.5)
- Press ENTER.ENTER