Defining Functions Functions as Procedures Manipulating Options
Mathematica has over 3000 built-in functions and other objects, all based on a single unified framework, and all carefully designed to work together, both in simple ...
Function[body] or body & is a pure function. The formal parameters are # (or #1), #2, etc. Function[x, body] is a pure function with a single formal parameter x. ...
Apply
(Built-in Mathematica Symbol) Apply[f, expr] or f @@ expr replaces the head of expr by f. Apply[f, expr, {1}] or f @@@ expr replaces heads at level 1 of expr by f.Apply[f, expr, levelspec] replaces heads ...
NotebookApply[notebook, data] writes data into a notebook at the current selection, replacing the first selection placeholder in data by the current selection, and then ...
Lists are very important and general structures in Mathematica. They allow you to treat collections of all kinds of objects as a single entity. There are many ways to ...
Lists are central constructs in Mathematica, used to represent collections, arrays, sets, and sequences of all kinds. Lists can have any structure and size, and can routinely ...
MapAt
(Built-in Mathematica Symbol) MapAt[f, expr, n] applies f to the element at position n in expr. If n is negative, the position is counted from the end. MapAt[f, expr, {i, j, ...}] applies f to the part of ...
Lists are widely used in Mathematica, and there are many ways to construct them. Some explicit ways to construct lists. This gives a table of the first five powers of 2.