### The Maxima on-line user's manual

Algebra Calculator

#### Arraymake

Function: arraymake (<A>, [<i_1>, ..., <i_n>]) Returns the expression `<A>[<i_1>, ..., <i_n>]`. The result is an unevaluated array reference.

`arraymake` is reminiscent of `funmake`, except the return value is an unevaluated array reference instead of an unevaluated function call.

```     Examples:
(%i1) arraymake (A, [1]);
(%o1)                          A
1
(%i2) arraymake (A, [k]);
(%o2)                          A
k
(%i3) arraymake (A, [i, j, 3]);
(%o3)                       A
i, j, 3
(%i4) array (A, fixnum, 10);
(%o4)                           A
(%i5) fillarray (A, makelist (i^2, i, 1, 11));
(%o5)                           A
(%i6) arraymake (A, [5]);
(%o6)                          A
5
(%i7) %;
(%o7)                          36
(%i8) L : [a, b, c, d, e];
(%o8)                    [a, b, c, d, e]
(%i9) arraymake (L, [n]);
(%o9)                          L
n
(%i10) %, n = 3;
(%o10)                          c
(%i11) A2 : make_array (fixnum, 10);
(%o11)          {Array:  #(0 0 0 0 0 0 0 0 0 0)}
(%i12) fillarray (A2, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
(%o12)          {Array:  #(1 2 3 4 5 6 7 8 9 10)}
(%i13) arraymake (A2, [8]);
(%o13)                         A2
8
(%i14) %;
(%o14)                          9```

```(%o1)                                true
(%i2) ```

### Related Examples

? arraymake;

Calculate

##### arraymake-fillarray-make_array-makelist

arraymake (a, [1]);

arraymake (a, [k]);

arraymake (a, [i, j,...

Calculate

##### arraymake-fillarray-make_array-makelist

arraymake (A, [1]);

arraymake (A, [k]);

arraymake (A, [i, j,...

Calculate

? arraymake;

Calculate

x : foo ;

i : 3 ;

subvar (x, i);

Calculate

##### arraymake-fillarray-make_array-makelist

arraymake (a, [1]);

arraymake (a, [k]);

arraymake (a, [i, j,...

Calculate

##### arraymake-fillarray-make_array-makelist

arraymake (a, [1]);

arraymake (a, [k]);

arraymake (a, [i, j,...

Calculate

##### arraymake-fillarray-make_array-makelist

arraymake (a, [1]);

arraymake (a, [k]);

arraymake (a, [i, j,...

Calculate

##### arraymake-fillarray-make_array-makelist

arraymake (a, [1]);

arraymake (a, [k]);

arraymake (a, [i, j,...

Calculate

##### arraymake

arraymake(A,[12,13,14]);

A(1);

Calculate