IB Maths Help logoIB Maths Help

Build and manipulate lists

Enter a list, apply an expression to every value, sort it, add it up and clear it, with the exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, plus what to write in the exam.

Used inAA SLAA HLAI SLAI HL

A list stores a data set so you can reuse it. Type the values into a list, then change the whole list at once by writing an expression that uses the list name, such as the list squared. Sort puts the values in order, and sum adds them up. Clear the list before you enter new data, or old values stay in it.

Example

Five students scored 12, 7, 15, 9 and 11 marks in a test. (a) Write the marks in order, smallest first. (b) Find the sum of the squares of the marks.

(a) In order the marks are 7,9,11,12,157, 9, 11, 12, 15. (b) Squaring each mark gives 49,81,121,144,22549, 81, 121, 144, 225, and these add up to 620620. The calculator does the squaring in one step for the whole list, and the sum in a second step. Checking by hand: 122+72+152+92+112=62012^2 + 7^2 + 15^2 + 9^2 + 11^2 = 620.

Choose your calculator

How to build and manipulate lists on a TI-84 Plus CE

Enter a list

Press stat and choose 1:Edit. If L1 already has numbers in it, press ▲ to put the cursor on the name L1, then press clear and enter to empty it.

Type the values into L1, one at a time, pressing enter after each: 12, 7, 15, 9, 11.

L1
12
7
15
9
11

You can also type the whole list on the home screen. Press 2nd ( ({), type the values separated by ,, then 2nd ) (}) sto▶ 2nd 1 (L1) and enter.

{12,7,15,9,11}→L1
{12 7 15 9 11}

Sort a list

On the home screen press 2nd stat (LIST), then ▶ to the OPS tab, and choose 1:SortA(. Type 2nd 1 (L1) ) and press enter.

The list in L1 is now in order, smallest first. 2:SortD( sorts it largest first.

The sorted list is 7, 9, 11, 12, 15.

SortA(L1)
Done

Apply an expression to the whole list

On the home screen type the expression with the list name in it, then store the result in another list. To square every value in L1 and store the squares in L2, press 2nd 1 (L1) x² sto▶ 2nd 2 (L2) and enter. The expression is applied to every value in the list at once.

The squares are 49, 81, 121, 144, 225.

L1²→L2
{49 81 121 144 225}

Add up a list

Press 2nd stat (LIST), then ▶ to the MATH tab and choose 5:sum(. Type 2nd 2 (L2) ) and press enter.

The sum of the squares is 620620. Using sum( on L1 gives the total of the values, 5454.

sum(L2)
620

Clear a list

Press stat and choose 4:ClrList. Type 2nd 1 (L1) and press enter. The list is now empty. To clear both lists, type 2nd 1 , 2nd 2 before pressing enter.

ClrList L1
Done

SortA( puts the list itself in order, so the original order is gone. If you need it again, store a copy in another list before you sort.

How to build and manipulate lists on a Casio fx-CG50

Enter a list

Press MENU and choose Statistics. The List Editor appears first. If List 1 already has numbers in it, move to any cell of it, press F6 (▶) and F4 (DEL-ALL), then F1 (Yes).

With the highlight on the first cell of List 1, type each value and press EXE. The highlight moves down to the next cell: 12, 7, 15, 9, 11.

List 1
12
7
15
9
11

To enter the values in one go, move to another list, press SHIFT ( ({), type the values separated by ,, then SHIFT ) (}) and EXE. Do not type a comma after the last value.

{12,7,15,9,11}

Sort a list

With the lists on the screen, press F6 (▶), F1 (TOOL), then F1 (SORTASC). At How Many Lists? type 1 EXE, and at Select List List No: type 1 EXE. SORTDES in place of SORTASC sorts largest first.

The sorted list is 7, 9, 11, 12, 15.

List 1
7
9
11
12
15

Apply an expression to the whole list

Move the highlight up to the name List 2. Press OPTN, F1 (LIST), F1 (List), type 1 x² and press EXE. Every value in List 2 is the square of the value beside it in List 1.

The squares are 49, 81, 121, 144, 225.

List 2
49
81
121
144
225

Add up a list

Press MENU and choose Run-Matrix. Press OPTN, F1 (LIST), F6, F6, then F1 (Sum), F6, F1 (List), 2 and EXE.

The sum of the squares is 620620.

Sum List 2
620

Clear a list

In the List Editor move to any cell of the list, press F6 (▶) and F4 (DEL-ALL), then F1 (Yes). Choose F6 (No) to cancel instead.

A list can hold 999 values and the calculator keeps 26 lists, but only one list file is open at a time. When a list is linked to another in a calculation, check both have the same number of values.

How to build and manipulate lists on a Casio fx-CG100

Enter a list

Press HOME and choose Statistics. The List Editor tab appears. Highlight a cell of List 1, type a value and press EXE. Repeat for each value: 12, 7, 15, 9, 11.

List 1
12
7
15
9
11

To enter the values in one go, highlight the name of a list, press CATALOG and choose Statistics → { }. Type the values separated by , and press EXE.

{12,7,15,9,11}

Sort a list

Press TOOLS and choose Sort/Jump → Sort Ascending. In the first dialog type the number of lists to sort, 1, and press OK. In the next dialog type the number of the list, 1, and press OK. Sort Descending sorts largest first.

The sorted list is 7, 9, 11, 12, 15.

List 1
7
9
11
12
15

Apply an expression to the whole list

Highlight the name List 2. Input List 1 from the variables menu, then x², so that the line reads List 1², and press EXE. Every value in List 2 is the square of the value beside it in List 1.

The squares are 49, 81, 121, 144, 225.

List 2
49
81
121
144
225

Add up a list

Press HOME and choose Calculate. Press CATALOG and choose Statistics → Sum(, then enter List 2 and press EXE.

The sum of the squares is 620620.

Sum(List 2)
620

Clear a list

In the List Editor highlight any cell of the list, press TOOLS and choose Delete → One List. All Lists clears every list.

When a calculation uses several lists, all of them must have the same number of values, or the calculator gives an error.

How to build and manipulate lists on a TI-Nspire CX

Enter a list

On a Calculator page type a name for the list, the store symbol and the values inside braces. Press ctrl var (sto→) for the store symbol, so that you have marks:={12,7,15,9,11}, and press enter.

marks:={12,7,15,9,11}
{12,7,15,9,11}

To type the values in a table instead, add a Lists & Spreadsheet page. Press ▲ to move to the name cell at the top of column A, type marks and press enter. Then type each value and press enter after it. The column is now a list called marks.

Sort a list

On a Calculator page type SortA marks (from the catalog, or typed) and press enter. Type marks and press enter to see the sorted list.

The sorted list is 7, 9, 11, 12, 15.

SortA marks
Done
marks
{7,9,11,12,15}

Apply an expression to the whole list

Type the expression with the list name in it, for example marks^2, and press enter. It is applied to every value in the list. To keep the result as a list, store it: sq:=marks^2.

The squares are 49, 81, 121, 144, 225.

sq:=marks^2
{49,81,121,144,225}

In a Lists & Spreadsheet page, move to the formula cell of an empty column (the second cell from the top) and type =a[]^2, using the letter of the column that holds the values, then press enter. The whole column fills with the squares.

Add up a list

Type sum(sq) and press enter, or type sum(marks^2) directly. Choose sum( from the catalog if you do not want to type it.

The sum of the squares is 620620.

sum(sq)
620

Clear a list

On a Calculator page type DelVar marks and press enter to delete the list. In a Lists & Spreadsheet page, select the column and choose Delete Column from the context menu.

DelVar marks
Done

Give each list its own name, such as marks and sq. Several lists in one calculation must have the same number of values, or the calculator gives a dimension error.

Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE eGuide, the TI-Nspire eGuide, the Casio fx-CG50 Software User's Guide (version 3.30) and the Casio fx-CG100 online manual.

What to write in the exam

  • Write the values and the result, not the key presses. For example, write the sorted marks 7,9,11,12,157, 9, 11, 12, 15 and the sum of squares 620620, and say you used your calculator.
  • Show the list you worked from. A sorted list or a list of squares is part of the working, so write out the values the question needs.
  • Check the number of values. Count the values in the list against the data in the question before you use it.
  • Keep the full calculator value for later parts and round only the final answer, unless the question says otherwise.
  • Check which papers allow a calculator. In AA SL and AA HL, Paper 1 is calculator-free, so work by hand there. In AI SL and AI HL a calculator is allowed on every paper (check your syllabus).

Using the list afterwards

Once the data is in a list, you can find its mean and standard deviation: see one-variable statistics, which also covers a list of values with a list of frequencies. To list the terms of a sequence from a formula, and to add a series, see list a sequence and sum a series.

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:DIMENSION MISMATCHAn operation uses two lists with different numbers of values, for example L1+L2.Check that both lists have the same number of values in the list editor.
TI-84 Plus CEERR:SYNTAXA bracket or a list name is missing from SortA(, sum( or ClrList, or the list braces are not closed.Choose Goto to see where the cursor stops, then close every bracket and check the list name.
Casio fx-CG50Dimension ERRORLists in the same calculation, or in the same sort, have different numbers of values.Make the lists the same length, then repeat the sort or the calculation.
Casio fx-CG50Syntax ERRORA comma is left after the last value in braces, or a bracket is missing.Press EXIT to see where the error is, then retype the list without the last comma.
Casio fx-CG100Dimension ERRORLists in the same calculation, or in the same sort, have different numbers of values.Make the lists the same length, then repeat the sort or the calculation.
Casio fx-CG100Syntax ERRORA comma is left after the last value in braces, or a bracket is missing.Retype the list without the last comma and check every bracket.
TI-Nspire CXDimension mismatchAn operation uses two lists with different numbers of values.Check that both lists have the same number of values.
TI-Nspire CXArgument must be a listSortA or sum( was given something that is not a list, such as a misspelt name that holds a number.Check the list name, and make sure the list was stored with the store symbol first.
TI-Nspire CXSyntax errorA brace, a comma or a bracket is missing.Check the braces and commas and retype the line.

Common mistakes

  • Old values left in the list. New values typed into a list that already has data may end up beside the old ones. Clear the list first.
  • Different numbers of values in two lists. A calculation with two lists, or a list of values with a list of frequencies, needs the same number of values in each. Count them.
  • A comma after the last value. On a Casio calculator, a list in braces with a comma after the last value gives an error.
  • Sorting one list of a pair. If a list of values has a list of frequencies beside it, sorting only the values pairs them with the wrong frequencies. Sort both lists together, with the values as the base list.
  • Writing key presses as working. Write the values and the result. The examiner needs the method, not the keys.

Try it yourself

Real questions from the IB Maths Help question bank. Type your answer and press Mark it: the worked solution and mark scheme then appear. Put the values in one list and the frequencies in another, then find the mean.

Practise with your calculator

Choose your course to see the practice sets that use this skill. You can also try practice mode or browse every GDC guide.

Quick questions

How do I enter data into a list on a calculator?

Open the list editor, which is the Statistics menu on the Casio calculators, the STAT Edit screen on the TI-84 Plus CE, or a Lists & Spreadsheet page on the TI-Nspire. Type each value and press enter. You can also type the whole list inside braces and store it under a name.

How do I change every value in a list at once?

Write an expression that uses the list name, such as the list squared, and store or enter it in another list. The calculator applies the expression to every value. You do not need to type the values again.

How do I put a list in order?

Use the sort command: SortA( on the TI-84 Plus CE, SortA on the TI-Nspire, or Tool and then Sort Ascending in the list editor on the Casio calculators. Sort Descending puts the largest value first.

Do I write the list commands in my exam working?

No. Write the values and the results you need, and say you used your calculator. Examiners look for the method, not the key presses.