### Related

array (P,3,1);

arrayinfo (P);

i:1;

Calculate

array (P,3,1);

arrayinfo (P);

i:1;

Calculate

array (P,3,1);

arrayinfo (P);

i:1;

Calculate

##### array-arrayinfo-listarray-pi

array (aa, 2, 3);

aa [2, 3] : %pi;

aa [1, 2] : %e;

Calculate

m : 2;

array(a, m, 1);

a [0,0] : 1;

Calculate

array (P,3,1);

arrayinfo (P);

P[0,0] : 1;

Calculate

m : 2;

array(a, m, 1);

a [0,0] : 1;

Calculate

array (P,3,1);

arrayinfo (P);

i:1;

Calculate

##### array-arrayinfo-listarray-pi

array (aa, 2, 3);

aa [2, 3] : %pi;

aa [1, 2] : %e;

Calculate

##### array-arrayinfo-listarray-pi

array (aa, 2, 3);

aa [2, 3] : %pi;

aa [1, 2] : %e;

Calculate

### [array,arrayinfo,listarray]

Run Example
```(%i1)m : 2;
(%o1)                                  2
(%i2) array(a, m, 1);
(%o2)                                  a
(%i3) a [0,0] : 1;
(%o3)                                  1
(%i4) a [0,1] : 5;
(%o4)                                  5
(%i5) a [1,0] : 1;
(%o5)                                  1
(%i6) a [1,1] : 5;
(%o6)                                  5
(%i7) a [2,0] : 1;
(%o7)                                  1
(%i8) a [2,1] : 3;
(%o8)                                  3
(%i9) b : 1;
(%o9)                                  1
(%i10) for i: 1 unless i >
m do b : b * (a [i,1] - a [i,0] + 1);
(%o10)                               done
(%i11) j;
(%o11)                                 j
(%i12) arrayinfo(a);
(%o12)                       [declared, 2, [2, 1]]
(%i13) listarray(a);
(%o13)                        [1, 5, 1, 5, 1, 3]
(%i14) ```
Run Example
```array (P,3,1);
(%o1)                                  P
(%i2) arrayinfo (P);
(%o2)                        [declared, 2, [3, 1]]
(%i3) i:1;
(%o3)                                  1
(%i4) j:1;
(%o4)                                  1
(%i5) P[1,j] : 8;
(%o5)                                  8
(%i6) P[0,0] : 1;
(%o6)                                  1
(%i7) P[0,1] : 1;
(%o7)                                  1
(%i8) P[1,0] : 1;
(%o8)                                  1
(%i9) P[2,0] : 5;
(%o9)                                  5
(%i10) P[2,1] : 3;
(%o10)                                 3
(%i11) P[3,0] : 5;
(%o11)                                 5
(%i12) P[3,1] : 1;
(%o12)                                 1
(%i13) listarray (P);
(%o13)                     [1, 1, 1, 8, 5, 3, 5, 1]
(%i14) Q:Plistarray (Q);
(%o14)                           Plistarray(Q)
(%i15) ```
Run Example
```array (P,3,1);
(%o1)                                  P
(%i2) arrayinfo (P);
(%o2)                        [declared, 2, [3, 1]]
(%i3) P[0,0] : 1;
(%o3)                                  1
(%i4) P[0,1] : 1;
(%o4)                                  1
(%i5) P[1,0] : 1;
(%o5)                                  1
(%i6) P[1,1] : 3;
(%o6)                                  3
(%i7) P[2,0] : 5;
(%o7)                                  5
(%i8) P[2,1] : 3;
(%o8)                                  3
(%i9) P[3,0] : 5;
(%o9)                                  5
(%i10) P[3,1] : 1;
(%o10)                                 1
(%i11) listarray (P);
(%o11)                     [1, 1, 1, 3, 5, 3, 5, 1]
(%i12) arrayinfo (P);
(%o12)                       [declared, 2, [3, 1]]
(%i13) ```

### Related Help

Help for Array

Help for Arrayinfo

Help for Listarray