Array
returns the
n
-element list{f(1), ..., f(n)}
.
returns the n-element list
{f(a), ..., f(a + n)}
.
returns an
n
-by-m
matrix created by applyingf
to indices ranging from(a, b)
to(a + n, b + m)
.
returns an expression with the specified dimensions and index origins, with head
h
(instead ofList
).
Examples
The next line gives 12 samples of Cos(x/4)]
starting at (x=4)
.
Array can take a fourth argument which should be applied to the result instead of List
.
The next line finds the minimum of the samples. Notice the function to be applied must be the fourth argument, so you must provide an starting value as a third argument.
{2, 3} and {1, 2, 3} should have the same length.
Single or list of non-negative integers expected at position 2.
Single or list of non-negative integers expected at position 3.
Implementation status
- ✅ - full supported