Listable is an attribute that can be assigned to a symbol f to indicate that the function f should automatically be threaded over lists that appear as its arguments.
Most mathematical functions in Mathematica are set up to apply themselves separately to each element in a list. This is true in particular of all functions that carry the ...
Mathematica includes many powerful operations for working with lists. It is often desirable to map a function onto each individual element in a list. While listable functions ...
Here the standard procedure used by Mathematica to evaluate expressions is described. This procedure is the one followed for most kinds of expression. There are, however, ...
Definitions such as f[x_]=x^2 specify values for functions. Sometimes, however, you need to specify general properties of functions, without necessarily giving explicit ...
Thread
(Built-in Mathematica Symbol) Thread[f[args]] "threads" f over any lists that appear in args. Thread[f[args], h] threads f over any objects with head h that appear in args. Thread[f[args], h, n] threads f ...
The names of built-in functions follow some general guidelines. The main expression or object on which a built-in function acts is usually given as the first argument to the ...
Many computations are conveniently specified in terms of applying functions in parallel to many elements in a list. Mathematica provides a suite of elegant functional ...
Mathematica contains some powerful primitives for making structural changes to expressions. You can use these primitives both to implement mathematical properties such as ...
RuntimeAttributes is an option for Compile that specifies attributes for the compiled function it creates.