You can load this session from /home/ceng303/maple/sessions as: ch3_2.mw


Session 3.2 Converting lists into arrays and sets

> restart;

> a1:=[[1,2],[3,4],[5,6]];

a1 := [[1, 2], [3, 4], [5, 6]]

> a:=convert(a1,array);

The array command converts the set into a 3x2 matrix or array

a := matrix([[1, 2], [3, 4], [5, 6]])

> a[3,2];

Note the extraction of the element in the 3rd row, 2nd column

6

> eq:=['eq1','eq2','eq3'];Sets are needed in solving equations

eq := [eq1, eq2, eq3]

> convert(eq,set);

{eq1, eq2, eq3}

>