Interactive Manual › Chapter 2
Chapter 2: Math, Angle, and Test Operations
Keyboard math, the MATH menu (fractions, roots, calculus, Solver), NUM, CPX and PRB tabs, complex numbers, the ANGLE menu, and the TEST relational and Boolean operators.
Getting Started: Coin Flipp. 35
This quick tour models flipping a fair coin 10 times and counting the heads, then repeating that experiment 40 times. With a fair coin the chance of heads on each flip is 0.5, so the counts should cluster around 5.
Simulate 40 rounds of 10 coin flips
You will use randBin( from the MATH PRB menu, look through the list it creates, and save the list as L₁ for later use (for example in a histogram, Chapter 12).
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- From the home screen, open the MATH menu and press ◀︎ to jump to the PRB tab, which holds the probability tools.MATH◀︎
- Choose 7:randBin( (random binomial). It is pasted onto the home screen.7
- Fill in the three arguments: 10 flips per round, a probability of heads of .5, and 40 rounds, then close the parenthesis.10,.5,40)
- Press ENTER. You get a list of 40 numbers; each is the number of heads in one round of 10 flips. Only the first few fit on the screen.ENTER
- Press ▶︎ to scroll through the rest of the list. An arrow (MathPrint) or an ellipsis (Classic) at the edge of the screen means the list continues.▶︎
- Store the list in L₁ with STO► 2ndL1 ENTER. The calculator fills in
Ansfor you, so you are storing the list you just generated.STO►2ndL1ENTER
Keyboard Math Operationsp. 36
Most of the keys in the main block do real-number math directly from the keyboard. This section lists them and notes which kinds of values (numbers, expressions, lists, matrices, complex numbers) each one accepts.
| Operation | Key | Works with |
|---|---|---|
| Add, subtract, multiply | + − × | Real and complex numbers, expressions, lists, matrices |
| Divide | ÷ | Real and complex numbers, expressions, lists (not matrices) |
| sin(, cos(, tan( | SIN COS TAN | Real numbers, expressions, lists (not complex) |
| sin⁻¹(, cos⁻¹(, tan⁻¹( | 2ndSIN⁻¹ 2ndCOS⁻¹ 2ndTAN⁻¹ | Real numbers, expressions, lists |
| Power ^ | ^ | Real and complex numbers, expressions, lists, square matrices |
| Square | x² | Real and complex numbers, expressions, lists, square matrices |
| Square root √( | 2nd√ | Real and complex numbers, expressions, lists (not matrices) |
| Inverse ⁻¹ | x⁻¹ | Real and complex numbers, expressions, lists, square matrices |
| log(, 10^(, ln(, e^( | LOG 2nd10ˣ LN 2ndeˣ | Real and complex numbers, expressions, lists |
| Negation | (−) | Real and complex numbers, expressions, lists, matrices |
| Constants π and e | 2ndπ 2nde | Stored constants |
Using Lists with Math Operationsp. 36
Any math operation that accepts lists works element by element and returns a list. If you use two lists in the same expression they must have the same length, otherwise the calculator reports a dimension error.
Square every element of a list
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type the list {1,2,3}. Braces are the 2nd functions of ( and ). Then press x² and ENTER.2nd{1,2,32nd}x²ENTER
- Add two lists of the same length. Each element is added to the element in the same position.2nd{1,2,32nd}+2nd{4,5,62nd}ENTER
Addition, Subtraction, Multiplication, Divisionp. 36
The four arithmetic keys work with real and complex numbers, expressions, lists and matrices. The one exception is division: you cannot divide by a matrix. To enter A/2 for a matrix A, write it as A × 0.5 or as A multiplied by the fraction 1/2.
valueA+valueBAdds two values. With lists or matrices, adds matching elements.
valueA−valueBSubtracts valueB from valueA. This is the subtraction key; negative numbers use the separate (−) key.
valueA×valueBMultiplies two values. Matrices multiply by the usual row-by-column rule.
valueA÷valueBDivides valueA by valueB. Matrices cannot be used as the divisor.
Trigonometric Functionsp. 36
Sine, cosine and tangent (and their inverses) accept real numbers, expressions and lists. They do not accept complex numbers. How the argument is read, or what angle is returned, depends on the current angle mode (Radian or Degree).
sin(value)Sine of an angle. The angle mode setting decides whether value is in radians or degrees.
cos(value)Cosine of an angle, interpreted according to the angle mode.
tan(value)Tangent of an angle, interpreted according to the angle mode.
sin⁻¹(value)Arcsine: the angle whose sine is value, returned in the current angle mode.
cos⁻¹(value)Arccosine: the angle whose cosine is value, returned in the current angle mode.
tan⁻¹(value)Arctangent: the angle whose tangent is value, returned in the current angle mode.
sin(30) in Radian and Degree mode
The same keystrokes give different answers depending on the angle mode.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- In the default Radian mode, enter sin(30). The calculator treats 30 as 30 radians.SIN30)ENTER
- Open the MODE screen, move down to the Radian/Degree line, highlight DEGREE and press ENTER.MODE▼︎▼︎▶︎ENTER
- Return to the home screen with 2ndQUIT (QUIT).2ndQUIT
- Enter sin(30) again. Now 30 means 30 degrees, and the answer is exactly .5.SIN30)ENTER
Find an angle with sin⁻¹(
Inverse trig functions return an angle in the current angle mode.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- In Radian mode, press 2ndSIN⁻¹ for sin⁻¹( and take the arcsine of .5.2ndSIN⁻¹.5)ENTER
- Switch to Degree mode and repeat. The same value now comes back as 30.MODE▼︎▼︎▶︎ENTER2ndQUIT2ndSIN⁻¹.5)ENTER
Power, Square, Square Rootp. 36
The power, square and square-root keys work with real and complex numbers, expressions, lists and matrices. The one exception is the square root, which does not accept matrices. In MathPrint mode, pressing ^ opens a raised exponent slot; type the exponent and press ▶︎ to get back to the baseline. In Classic mode the expression is written value^power.
value^powerRaises value to power. In MathPrint mode the power is entered in a raised slot.
value²Squares a value.
√(value)Principal square root. In Real mode, the square root of a negative number is an error unless a+bi mode is on.
Powers, squares and square roots
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Raise 3 to the 4th power: type 3, press ^, type the exponent 4, and press ENTER.3^4ENTER
- Square a number with x².12x²ENTER
- Take a square root with 2nd√.2nd√49)ENTER
Inversep. 37
The x⁻¹ key gives the multiplicative inverse, which is the same as the reciprocal 1/x. It works with real and complex numbers, expressions, lists and square matrices.
value⁻¹Multiplicative inverse (reciprocal) of a number, expression, list or square matrix.
Take a reciprocal
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Enter 4, then press x⁻¹ and ENTER.4x⁻¹ENTER
log(, 10^(, ln(p. 37
The logarithm keys work with real or complex numbers, expressions and lists. log( is the base-10 logarithm, 10^( is its inverse, and ln( is the natural (base e) logarithm.
log(value)Base-10 logarithm.
10^(power)Raises 10 to a power. In MathPrint mode the power is typed in a raised slot.
ln(value)Natural logarithm (base e).
Exponentialp. 37
e^(power)Returns the constant e raised to a power. Accepts real or complex numbers, expressions and lists.
Logarithms and exponentials
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Find log(1000), the power of 10 that gives 1000.LOG1000)ENTER
- Undo it with 10^( on 2nd10ˣ: 10 to the power 3.2nd10ˣ3ENTER
- Natural logarithm of 1 is 0.LN1)ENTER
- e^( is 2ndeˣ. e to the power 1 gives the constant e.2ndeˣ1ENTER
Constant (e)p. 37
The constant e is stored on the calculator. Press 2nde to paste it at the cursor. In calculations the calculator uses 2.718281828459 for e.
eThe constant e (Euler's number), about 2.718281828459.
Negationp. 37
The (−) key ((−)) makes a number negative. It works with real or complex numbers, expressions, lists and matrices. Negation follows the EOS order-of-operations rules from Chapter 1: squaring happens before negation, so ⁻4² is −16. To square a negative number, put it in parentheses: (⁻4)² is 16.
⁻valueNegation: returns the negative of value. Different from the subtraction key.
⁻4² versus (⁻4)²
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Enter negative four, then square it. Squaring is done first, so the result is negative.(−)4x²ENTER
- Now put the negative number in parentheses before squaring.((−)4)x²ENTER
Pip. 38
π is a stored constant. Press 2ndπ to paste it. In calculations the calculator uses 3.1415926535898 for π.
πThe constant pi, about 3.14159265359.
Area of a circle
The area of a circle with radius 5 is π × 5².
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Press 2ndπ for π, multiply by 5, and square it.2ndπ×5x²ENTER
MATH NUM (Number) Operationsp. 45
Press MATH then ▶︎ to open the NUM tab. It holds rounding and parts-of-a-number functions, min/max, least common multiple and greatest common divisor, the remainder function, and the fraction tools.
abs(p. 46
abs( returns the absolute value of a real number, or the modulus of a complex number, and works with expressions, lists and matrices. It is also on the MATH CPX menu and on the FUNC shortcut menu (ALPHAF2 then 1).
abs(value)Absolute value of a real number, expression, list or matrix; the modulus of a complex number.
abs(⁻7)→7
Absolute value
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open MATH, go to the NUM tab with ▶︎, and choose 1:abs(.MATH▶︎1
- Enter ⁻7 and press ENTER.(−)7ENTER
round(p. 47
round( rounds a number, expression, list or matrix to a number of decimal places (up to 9). If you leave out the number of decimals, the value is rounded to the digits currently displayed, up to 10 digits.
round(value[,#decimals])Rounds value to #decimals decimal places (0 to 9). Without #decimals, rounds to the displayed digits, up to 10.
round(π,4)→3.1416
Round π to 4 decimal places
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 2:round( from the NUM tab, then enter π (2ndπ), a comma, and 4.MATH▶︎22ndπ,4)
- Press ENTER.ENTER
iPart(, fPart(p. 47
iPart( returns the integer part of a number (it just drops the digits after the decimal point), and fPart( returns what is left: the fractional part. Both work with real or complex numbers, expressions, lists and matrices.
iPart(value)Integer part of value.
iPart(⁻23.45)→⁻23
fPart(value)Fractional part of value.
fPart(⁻23.45)→⁻.45
int(p. 47
int( returns the largest integer that is less than or equal to the value (the "floor"). It works with real or complex numbers, expressions, lists and matrices.
iPart(⁻23.45) is ⁻23 but int(⁻23.45) is ⁻24.int(value)Largest integer ≤ value.
int(⁻23.45)→⁻24
iPart(, fPart( and int( on ⁻23.45
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 3:iPart( and enter ⁻23.45.MATH▶︎3(−)23.45)ENTER
- Now 4:fPart( of the same number.MATH▶︎4(−)23.45)ENTER
- Finally 5:int(. The greatest integer not above ⁻23.45 is ⁻24, one less than the integer part.MATH▶︎5(−)23.45)ENTER
min(, max(p. 48
min( returns the smaller of two values, or the smallest element of a list. Given two lists it compares them position by position and returns a list of the smaller of each pair. Given a list and a single value, it compares every element with that value. max( does the same with the larger value.
min(valueA,valueB)min(list)min(listA,listB)min(list,value)Smaller of two values, smallest element of a list, or the element-by-element minimum of two lists (or a list and a value).
min(5,3)→3min({4,1,7})→1
max(valueA,valueB)max(list)max(listA,listB)max(list,value)Larger of two values, largest element of a list, or the element-by-element maximum of two lists (or a list and a value).
max(5,3)→5max({4,1,7},5)→{5 5 7}
Smaller and larger of two values, and of a list
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 6:min( and compare 5 and 3.MATH▶︎65,3)ENTER
- Choose 7:max( and compare the list {4,1,7} with the value 5. Each list element is compared with 5.MATH▶︎72nd{4,1,72nd},5)ENTER
lcm(, gcd(p. 48
lcm( returns the least common multiple and gcd( the greatest common divisor of two non-negative integers. With two lists they work pair by pair and return a list; with a list and a value, they work on each list element together with the value.
lcm(valueA,valueB)lcm(listA,listB)lcm(list,value)Least common multiple of two non-negative integers (or element by element for lists).
lcm(12,18)→36
gcd(valueA,valueB)gcd(listA,listB)gcd(list,value)Greatest common divisor of two non-negative integers (or element by element for lists).
gcd(12,18)→6
lcm( and gcd( of 12 and 18
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 8:lcm(.MATH▶︎812,18)ENTER
- Choose 9:gcd(.MATH▶︎912,18)ENTER
remainder(p. 49
remainder( gives the remainder when one whole number is divided by another (dividend and divisor). Either argument can be a list. The divisor cannot be zero. If both are lists they must be the same length; if only one is a list, the single value is paired with every list element and a list is returned.
remainder(dividend,divisor)remainder(list,divisor)remainder(dividend,list)remainder(list,list)Remainder of dividend divided by divisor.
remainder(17,5)→2
Remainder of 17 divided by 5
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 0:remainder( from the NUM tab (the key 0).MATH▶︎017,5)ENTER
►n/d◄►Un/dp. 49
►n/d◄►Un/d converts an improper fraction to a mixed number, or a mixed number to an improper fraction. It is also item 3 on the FRAC shortcut menu (ALPHAF1).
fraction►n/d◄►Un/dConverts an improper fraction to a mixed number, and a mixed number to an improper fraction.
Turn 7/3 into a mixed number
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open the FRAC shortcut menu with ALPHAF1 and choose 1:n/d to get a fraction template. Type the numerator 7, press ▶︎ and type the denominator 3, then ▶︎ to leave the template.ALPHAF117▶︎3▶︎
- Choose A:►n/d◄►Un/d from the NUM tab and press ENTER. The answer is the mixed number 2 1/3.MATH▶︎ALPHAAENTER
►F◄►Dp. 50
►F◄►D converts a fraction to a decimal, or a decimal to a fraction. It is also item 4 on the FRAC shortcut menu (ALPHAF1).
value►F◄►DConverts a fraction to a decimal or a decimal to a fraction.
.75►F◄►D→3/4
Convert .75 to a fraction
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type .75, then open the FRAC shortcut menu (ALPHAF1) and choose 4:►F◄►D..75ALPHAF14
- Press ENTER.ENTER
Un/dp. 50
Un/d puts the mixed-number template on the screen (item 2 of the FRAC shortcut menu). In MathPrint mode it is a whole number with a fraction beside it; in Classic mode a small u separates the whole number from the fraction. In a mixed number, n and d must be non-negative integers.
Un/dMixed-number template: whole number U, numerator n, denominator d (n and d non-negative integers).
Enter 2 3/4 as a mixed number
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose C:Un/d from the NUM tab. Type the whole number 2, press ▶︎ for the numerator 3, press ▶︎ again for the denominator 4.MATH▶︎ALPHAC2▶︎3▶︎4
- Press ENTER. 2 3/4 is the improper fraction 11/4 (2.75).ENTER
n/dp. 50
n/d puts the fraction template on the screen (item 1 of the FRAC shortcut menu). Here n and d can be real numbers or expressions, but they may not contain complex numbers. In Classic mode the fraction is shown with a thick fraction bar.
n/dFraction template with numerator n and denominator d (real numbers or expressions, not complex).
Enter 3/4 with the fraction template
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose D:n/d from the NUM tab. Type the numerator 3, press ▶︎, type the denominator 4 and press ▶︎ to leave the template.MATH▶︎ALPHAD3▶︎4▶︎
- Add .5 and press ENTER. Mixing a fraction with a decimal gives a decimal answer.+.5ENTER
Entering and Using Complex Numbersp. 50
The calculator works with complex numbers in rectangular form (a+bi) and polar form (re^θi). Complex numbers can be stored in variables and used as list elements. Complex results need a complex mode, as described next.
Complex-Number Modesp. 50
Press MODE and pick one of the two complex-number modes on the Real / a+bi / re^θi line:
- a+bi: rectangular-complex mode.
- re^θi: polar-complex mode.
In Real mode, a complex result produces an error unless one of the numbers you entered was complex. For example, ln(⁻1) gives ERR:NONREAL ANS in Real mode but returns an answer in a+bi mode.
ln(⁻1) in Real mode and in a+bi mode
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- In Real mode, take ln(⁻1). The result is not a real number.LN(−)1)ENTER
- Dismiss the error screen with CLEAR, then open MODE and highlight a+bi on the Real/a+bi/re^θi line (6 lines down).CLEARMODE▼︎▼︎▼︎▼︎▼︎▼︎▶︎
- Press ENTER to select it, then 2ndQUIT to return to the home screen.ENTER2ndQUIT
- Repeat ln(⁻1). Now it works: the answer is the imaginary number πi, whose real part is 0.LN(−)1)ENTER
Entering Complex Numbersp. 51
Complex numbers are stored in rectangular form, but you can type one in either rectangular or polar form regardless of the mode setting. The real and imaginary parts can be real numbers or expressions that evaluate to real numbers; expressions are evaluated when you press ENTER. The imaginary unit i is 2ndi.
You can use fractions in a complex number, but the output will always be a decimal. When you use the n/d template, the fraction itself cannot contain a complex number, so use division to compute such an answer instead.
Multiply two complex numbers
Compute (2+3i)(4−i) in a+bi mode.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type the first factor. The imaginary unit i is 2ndi.(2+32ndi)
- Multiply by the second factor, (4 − i), and press ENTER. The product is 11 + 10i.×(4−2ndi)ENTER
Divide by a complex number
Division gives a complex quotient: (1+i)/(1−i) = i.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Enter (1+i)÷(1−i) with ordinary parentheses and the ÷ key.(1+2ndi)÷(1−2ndi)ENTER
Note about Radian Versus Degree Modep. 52
Use Radian mode for complex-number work. The calculator converts trigonometric arguments to radians internally, but it does not convert the arguments of exponential, logarithmic or hyperbolic functions.
In Degree mode this breaks identities such as e^(iθ) = cos(θ) + i·sin(θ). For instance, e^(i45) = cos(45) + i·sin(45) is evaluated as e^(i45) = cos(π/4) + i·sin(π/4), so the two sides no longer match. In Radian mode complex identities always hold.
Interpreting Complex Resultsp. 52
A complex number in a result (including a list element) is shown in rectangular or polar form, according to the mode setting or according to a display-conversion instruction such as ►Rect or ►Polar. Polar-complex mode is easiest to see in Radian mode.
See 3+4i in polar-complex mode
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Open MODE, highlight re^θi on the Real/a+bi/re^θi line (6 lines down, two options across), press ENTER and return to the home screen with 2ndQUIT.MODE▼︎▼︎▼︎▼︎▼︎▼︎▶︎▶︎ENTER2ndQUIT
- Enter 3+4i and press ENTER. The result is shown as magnitude and angle: 5e^(.927295218i).3+42ndiENTER
Rectangular-Complex Modep. 52
Rectangular-complex mode recognizes and displays a complex number as a+bi, where a is the real component, b is the imaginary component, and i is the constant √(⁻1). To enter one, type a, press + or −, type b, then press 2ndi for i.
real component (+ or −) imaginary component i
Polar-Complex Modep. 52
Polar-complex mode recognizes and displays a complex number as re^θi, where r is the magnitude, e is the base of the natural logarithm, θ is the angle, and i is the constant √(⁻1). To enter one in polar form, type r, press 2ndeˣ (e^(), type the angle θ, press 2ndi for i, then close with ).
magnitude e^(angle i)
Enter a number in polar form
Type 5e^(1i), a number with magnitude 5 and angle 1 radian, while in a+bi mode.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type the magnitude 5, then press 2ndeˣ for e^(.52ndeˣ
- Type the angle 1, press 2ndi for i, and close the parenthesis. Then press ENTER. In a+bi mode the answer comes back in rectangular form.12ndi)ENTER
MATH CPX (Complex) Operationsp. 54
Press MATH then ▶︎ twice to open the CPX tab. It holds the tools for working with the parts of a complex number.
conj(p. 54
conj( returns the complex conjugate of a complex number or a list of complex numbers. In a+bi mode, conj(a+bi) returns a−bi. In re^θi mode, conj(re^(θi)) returns re^(⁻θi).
conj(value)Complex conjugate of a complex number or list of complex numbers.
conj(3+4i)→3−4i
real(p. 54
real( returns the real part of a complex number or list of complex numbers. real(a+bi) returns a; real(re^(θi)) returns r·cos(θ).
real(value)Real part of a complex number or list of complex numbers.
real(3+4i)→3
imag(p. 55
imag( returns the imaginary (non-real) part of a complex number or list of complex numbers. imag(a+bi) returns b; imag(re^(θi)) returns r·sin(θ).
imag(value)Imaginary part of a complex number or list of complex numbers.
imag(3+4i)→4
angle(p. 55
angle( returns the polar angle of a complex number or list of complex numbers. It is calculated as tan⁻¹(b/a), where b is the imaginary part and a the real part, then adjusted by +π in the second quadrant or −π in the third quadrant. angle(re^(θi)) returns θ, with −π < θ < π. The answer is in the current angle mode.
angle(value)Polar angle of a complex number or list of complex numbers, in the current angle mode.
angle(3+4i)→.927295218
abs( (complex)p. 55
abs( returns the magnitude (modulus) √(a²+b²) of a complex number or list of complex numbers. abs(a+bi) returns √(a²+b²) and abs(re^(θi)) returns r. It is the same function as the one on the NUM tab and is also on the FUNC shortcut menu (ALPHAF2 then 1).
abs(value)Magnitude (modulus) of a complex number or list of complex numbers.
abs(3+4i)→5
Take apart 3+4i
Use the CPX functions on 3 + 4i in a+bi mode.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- The conjugate has the same real part and the opposite imaginary part. Choose 1:conj( from the CPX tab (MATH ▶︎ ▶︎).MATH▶︎▶︎13+42ndi)ENTER
- Choose 2:real( to get the real part.MATH▶︎▶︎23+42ndi)ENTER
- Choose 3:imag( to get the imaginary part.MATH▶︎▶︎33+42ndi)ENTER
- Choose 4:angle( to get the polar angle, in radians.MATH▶︎▶︎43+42ndi)ENTER
- Choose 5:abs( to get the magnitude: √(3²+4²) = 5.MATH▶︎▶︎53+42ndi)ENTER
►Rectp. 56
►Rect shows a complex result in rectangular form (a+bi). It is valid only at the end of an expression, and it is not valid if the result is real.
complex result►RectDisplays a complex result in rectangular form a+bi. Valid only at the end of an expression, and only for complex results.
►Polarp. 56
►Polar shows a complex result in polar form re^(θi). It is valid only at the end of an expression, and it is not valid if the result is real.
complex result►PolarDisplays a complex result in polar form re^(θi). Valid only at the end of an expression, and only for complex results.
Convert between rectangular and polar form
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type 3+4i, then choose 7:►Polar from the CPX tab and press ENTER. The answer is shown with its magnitude 5 and angle .927295218 radians.3+42ndiMATH▶︎▶︎7ENTER
- Convert the last answer back: press 2ndANS for Ans, then choose 6:►Rect.2ndANSMATH▶︎▶︎6ENTER
MATH PRB (Probability) Operationsp. 56
Press MATH then ◀︎ to open the PRB tab, the last of the four tabs. It holds the random-number generators, permutations and combinations, and factorial.
randp. 57
rand generates one or more random numbers greater than 0 and less than 1. To get a list of random numbers, give a whole number greater than 1 as the number of trials; the default is 1.
5×rand gives a random number between 0 and 5.For a given seed value, every rand run produces the same sequence of numbers. The factory-set seed is 0. To get a different sequence, store any non-zero number into rand (for example 123→rand). Storing 0 into rand, or resetting the defaults (Chapter 18), restores the factory seed. The seed also affects randInt(, randNorm( and randBin(.
rand[(numtrials)]Random number between 0 and 1 (exclusive). With numtrials greater than 1, returns a list. Storing a number into rand sets the random seed.
rand→.9435974025(right after the seed is reset to 0)0→rand
Reset the random seed to get repeatable numbers
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Store 0 into rand (the factory seed): type 0, press STO►, then choose 1:rand from the PRB tab.0STO►MATH◀︎1ENTER
- Now generate a random number. With the seed at 0 it is always the same first number.MATH◀︎1ENTER
- Ask for a list of 3 random numbers: type rand, then (3).MATH◀︎1(3)ENTER
nPr, nCrp. 57
nPr counts the permutations (ordered selections) of items taken number at a time. nCr counts the combinations (unordered selections). Both arguments must be non-negative integers, and either can be a list.
items nPr numberNumber of permutations of items taken number at a time.
5 nPr 2→20
items nCr numberNumber of combinations of items taken number at a time.
5 nCr 2→10
Count arrangements and selections
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- How many ways can you line up 2 of 5 items? Type 5, choose 2:nPr and type 2.5MATH◀︎22ENTER
- How many ways to choose 2 of 5 when order does not matter? Use 3:nCr.5MATH◀︎32ENTER
! (Factorial)p. 58
! returns the factorial of an integer or of a multiple of .5. For a list, it returns the factorial of each element. The value must be ≥ ⁻.5 and ≤ 69.
The calculator computes the factorial step by step using (n+1)! = (n+1)·n!, until n is reduced to 0 or ⁻1/2. It then uses the definitions 0! = 1 and (⁻1/2)! = √π. Therefore:
- n! = n·(n−1)·(n−2)·…·2·1, if n is an integer ≥ 0;
- n! = n·(n−1)·…·(1/2)·√π, if n+1/2 is an integer ≥ 0;
- n! is an error if neither n nor n+1/2 is an integer ≥ 0.
value!Factorial of an integer or multiple of .5, with ⁻.5 ≤ value ≤ 69.
5!→120
Factorials
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Type 5, then choose 4:! from the PRB tab.5MATH◀︎4ENTER
- Half-integers work too: 4.5! is 4.5 × 3.5 × 2.5 × 1.5 × 0.5 × √π.4.5MATH◀︎4ENTER
randInt(p. 58
randInt( generates a random integer between a lower and an upper whole-number bound (both included). Add a third argument greater than 1 to get a list of that many random integers; the default is 1.
randInt(lower,upper[,numtrials])Random integer between lower and upper, or a list of numtrials of them.
randInt(1,6)→ one roll of a dierandInt(1,6,5)→ a list of five rolls
Roll a die
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 5:randInt( and roll a die: lower bound 1, upper bound 6.MATH◀︎51,6)ENTER
- Add a third argument to roll 5 dice at once.MATH◀︎51,6,5)ENTER
randNorm(p. 58
randNorm( generates a random real number from a Normal distribution with mean μ and standard deviation σ. Any real number is possible, but most results fall within three standard deviations of the mean, in the interval [μ−3σ, μ+3σ]. A third argument greater than 1 gives a list; the default is 1.
randNorm(μ,σ[,numtrials])Random number from the Normal distribution with mean μ and standard deviation σ, or a list of numtrials of them.
randNorm(100,5,3)→ a list of three values near 100
Three values from a Normal distribution
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 6:randNorm( with mean 100, standard deviation 5, and 3 trials.MATH◀︎6100,5,3)ENTER
randBin(p. 59
randBin( generates a random integer from a Binomial distribution: the number of successes in numtrials independent trials, each with success probability prob. numtrials must be at least 1, and prob must be between 0 and 1. A third argument (the number of simulations) greater than 1 gives a list; the default is 1. The Coin Flip activity at the start of the chapter uses it.
randBin(numtrials,prob[,numsimulations])Random number of successes from a Binomial distribution, or a list of numsimulations of them.
randBin(10,.5,40)→ a list of 40 head counts
Count heads in 10 coin flips
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 7:randBin(, then 10 flips and a probability of .5.MATH◀︎710,.5)ENTER
randIntNoRep(p. 59
randIntNoRep( returns a list of the integers from a lower integer to an upper integer, each appearing exactly once, in random order. Use it to shuffle or to sample without repeats.
randIntNoRep(lowerint,upperint)A random ordered list of every integer from lowerint to upperint, each once.
randIntNoRep(1,6)→ a shuffled list of 1 to 6
Shuffle the numbers 1 to 6
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Choose 8:randIntNoRep( with lower 1 and upper 6.MATH◀︎81,6)ENTER
ANGLE Operationsp. 59
Press 2ndANGLE to open the ANGLE menu. It contains angle markers and conversion instructions. The Radian/Degree mode setting affects how the calculator interprets what you enter with these items.
Entry Notation (DMS)p. 60
DMS (degrees/minutes/seconds) entry notation uses three symbols: degrees (°), minutes (') and seconds ("). The degrees must be a real number; minutes and seconds must be real numbers ≥ 0. Fractions are not supported in the minutes or seconds.
degrees°minutes'seconds"
As a check, 30 degrees is the same as π/6 radians. You can verify this by evaluating 30° in Radian mode (which converts it to radians) and comparing it with π/6, or by looking at the sine in each mode.
Enter 1°30'45" as a DMS angle
The result is the same angle in decimal degrees.
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- In Degree mode, type 1, then the degree symbol from the ANGLE menu (2ndANGLE then 1).12ndANGLE1
- Type 30 and the minute symbol (ANGLE item 2), then 45 and the seconds symbol ALPHA". Press ENTER.302ndANGLE245ALPHA"ENTER
° (Degree)p. 60
° marks a value (or every element of a list) as degrees, whatever the current angle mode is. In Radian mode, use ° to convert degrees to radians. In DMS format it also stands for the degrees part.
value° or {value1,value2,…}°
value°{value1,value2,value3,...,value n}°Marks an angle or list of angles as degrees, regardless of the angle mode. Also the degrees symbol in DMS notation.
- In Radian mode:
30°→.5235987756
degrees°minutes'seconds"Minutes symbol in DMS entry notation.
degrees°minutes'seconds"Seconds symbol in DMS entry notation. Not on the ANGLE menu: type it with ALPHA".
sin(30°) in Radian mode
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- In Radian mode, take the sine of 30 with the degree symbol: press SIN, type 30, then the degree symbol (ANGLE item 1).SIN302ndANGLE1)ENTER
- Convert 30° to radians: type 30°. The answer is π/6, about .5235987756.302ndANGLE1ENTER
- Check it against π/6.2ndπ÷6ENTER
ʳ (Radians)p. 61
ʳ marks a value or list as radians whatever the current angle mode is. In Degree mode, use ʳ to treat a number as radians when you apply a trig function.
valueʳ
valueʳMarks an angle or list of angles as radians, regardless of the angle mode.
- In Degree mode:
sin(30ʳ)→⁻.9880316241
sin(30ʳ) in Degree mode
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- The calculator is in Degree mode. Take the sine of 30 radians: press SIN, type 30, then ʳ (ANGLE item 3).SIN302ndANGLE3)ENTER
- For comparison, sin(30) with no marker is read as degrees.SIN30)ENTER
►DMSp. 61
►DMS displays an answer in degrees/minutes/seconds. The mode must be Degree for the answer to be read as degrees, minutes and seconds. ►DMS is valid only at the end of a line.
answer►DMSDisplays answer in degree/minute/second format. Requires Degree mode; valid only at the end of a line.
- In Degree mode:
1.5►DMS→1°30'0"
Show 1.5 degrees as degrees/minutes/seconds
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- In Degree mode, type 1.5 and choose 4:►DMS from the ANGLE menu.1.52ndANGLE4
- Press ENTER. 1.5 degrees is 1 degree, 30 minutes, 0 seconds.ENTER
R►Pr(, R►Pθ(, P►Rx(, P►Ry(p. 61
R►Pr( and R►Pθ( convert rectangular coordinates (x, y) to polar coordinates, returning r and θ. P►Rx( and P►Ry( convert polar coordinates (r, θ) to rectangular coordinates, returning x and y. The arguments can be lists. Angles are read or returned in the current angle mode.
R►Pr(x,y)Converts rectangular coordinates to polar and returns r.
R►Pr(3,4)→5
R►Pθ(x,y)Converts rectangular coordinates to polar and returns θ, in the current angle mode.
R►Pθ(3,4)→.927295218(Radian)
P►Rx(r,θ)Converts polar coordinates to rectangular and returns x.
P►Rx(2,60)→1(Degree)
P►Ry(r,θ)Converts polar coordinates to rectangular and returns y.
P►Ry(2,60)→1.732050808(Degree)
Convert (3, 4) to polar coordinates
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- In Radian mode, choose 5:R►Pr( and enter x=3, y=4. This is the distance from the origin.2ndANGLE53,4)ENTER
- Choose 6:R►Pθ( for the angle. In Radian mode it is about .927 radians.2ndANGLE63,4)ENTER
Convert r=2, θ=60° to rectangular coordinates
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- The calculator is in Degree mode. Choose 7:P►Rx( and enter r=2, θ=60.2ndANGLE72,60)ENTER
- Choose 8:P►Ry( for the y-coordinate.2ndANGLE82,60)ENTER
- In Degree mode, R►Pθ( returns degrees: for (3, 4) it is about 53.13°.2ndANGLE63,4)ENTER
TEST (Relational) Operationsp. 62
Press 2ndTEST to open the TEST menu. Its first tab holds the relational (comparison) operators.
A relational operator compares two values and returns 1 if the test is true or 0 if it is false. The values can be real numbers, expressions or lists. For = and ≠ only, they can also be matrices (of the same dimensions) or complex numbers.
Relational operators are often used in programs to control the flow of the program, and in graphing to switch a function on or off over certain values.
valueA=valueBReturns 1 if valueA equals valueB, otherwise 0. Also works with matrices and complex numbers.
3=3→1
valueA≠valueBReturns 1 if valueA is not equal to valueB, otherwise 0. Also works with matrices and complex numbers.
3≠3→0
valueA>valueBReturns 1 if valueA is greater than valueB, otherwise 0.
5>3→1
valueA≥valueBReturns 1 if valueA is greater than or equal to valueB, otherwise 0.
{1,2,3}≥2→{0 1 1}
valueA<valueBReturns 1 if valueA is less than valueB, otherwise 0.
2<5→1
valueA≤valueBReturns 1 if valueA is less than or equal to valueB, otherwise 0.
5≤2→0
Using Testsp. 62
Relational operators are evaluated after the mathematical functions, following the EOS rules from Chapter 1.
2+2=2+3returns 0. The additions happen first, and then 4 is compared with 5.2+(2=2)+3returns 6. The parentheses force the test to happen first (it is true, so 1), and then 2 + 1 + 3 is added.
Relational tests and EOS
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Compare numbers: press 5, choose 3:> from the TEST menu (2ndTEST), then type 3. 5 > 3 is true, so the answer is 1.52ndTEST33ENTER
- A false test returns 0. Test whether 3 is not equal to 3 with 2:≠.32ndTEST23ENTER
- Now try 2+2=2+3, using 1:=. The sums are done first and 4 ≠ 5, so the result is 0.2+22ndTEST12+3ENTER
- Put the test in parentheses and it is done first: 2+(2=2)+3 is 2+1+3.2+(22ndTEST12)+3ENTER
- Tests also work on lists, element by element. Test which elements of {1,2,3} are at least 2 (4:≥).2nd{1,2,32nd}2ndTEST42ENTER
TEST LOGIC (Boolean) Operationsp. 63
Press 2ndTEST then ▶︎ to open the LOGIC tab of the TEST menu.
Boolean operators are often used in programs to control program flow, and in graphing to control the graph of a function over specific values. The calculator interprets a value of zero as false and any nonzero value as true.
and, or, xorp. 63
and, or and xor (exclusive or) return 1 when their condition is true and 0 when it is false, according to the truth table below. valueA and valueB can be real numbers, expressions or lists.
| valueA | valueB | and | or | xor |
|---|---|---|---|---|
| ≠0 | ≠0 | 1 | 1 | 0 |
| ≠0 | 0 | 0 | 1 | 1 |
| 0 | ≠0 | 0 | 1 | 1 |
| 0 | 0 | 0 | 0 | 0 |
valueA and valueBReturns 1 if both values are nonzero (true), otherwise 0.
3 and 0→0
valueA or valueBReturns 1 if at least one value is nonzero (true), otherwise 0.
3 or 0→1
valueA xor valueBExclusive or: returns 1 if exactly one value is nonzero (true), otherwise 0.
3 xor 5→0
not(p. 63
not( returns 1 if the value (which can be an expression) is 0, and 0 otherwise.
not(value)Returns 1 if value is 0 (false), otherwise 0.
not(0)→1
Using Boolean Operationsp. 63
Boolean logic is often combined with relational tests. In the program shown in the guidebook, such a test decides whether the instructions store 4 into C. You can try the same idea right on the home screen, since a true test is just the number 1 and a false test is 0.
Combine tests with and, or, xor and not(
▶ Try this step-by-step on the online TI-84 Plus — keys light up as you go
- Variables A=2 and B=5 are stored. Test whether A>1 and B<10. Both parts are true, so the result is 1. (A and B are typed with ALPHA; the tutorial does that for you. The operator and is 2ndTEST ▶︎ 1.)(ALPHAA2ndTEST31)2ndTEST▶︎1(ALPHAB2ndTEST510)ENTER
- Now xor: it is true only when exactly one side is true. Here both sides are true, so the result is 0.(ALPHAA2ndTEST31)2ndTEST▶︎3(ALPHAB2ndTEST510)ENTER
- or is true when at least one side is true. Test A>5 or B>3: only the second is true, so the result is 1.(ALPHAA2ndTEST35)2ndTEST▶︎2(ALPHAB2ndTEST33)ENTER
- Use not( to flip a result: not(A=2) is 0 because A=2 is true.2ndTEST▶︎4ALPHAA2ndTEST12)ENTER
- Because a true test is the number 1, you can multiply by it. Here 4 times the test (A>1 and B<10) gives 4, just like the guidebook program that stores 4 into C.4((ALPHAA2ndTEST31)2ndTEST▶︎1(ALPHAB2ndTEST510))STO►ALPHACENTER