Mathematica includes many controls and structures related to controls as part of its core language. These control objects are supported in a completely seamless way ...
It is always a good idea to give variables and functions names that are as explicit as possible. Sometimes, however, such names may get inconveniently long. In Mathematica, ...
The following is the sequence of steps that Mathematica follows in evaluating an expression like h[e_1,e_2…]. Every time the expression changes, Mathematica effectively ...
Patterns are used throughout Mathematica to represent classes of expressions. A simple example of a pattern is the expression f[x_]. This pattern represents the class of ...
Minimization and maximization. Minimize and Maximize yield lists giving the value attained at the minimum or maximum, together with rules specifying where the minimum or ...
Mathematica provides users with access to their computer's file system (Files), interprocess communication (MathLink Mathematica Functions), evaluation of data as code ...
Finding lines that contain specified text. Here is a file containing some text. This returns a list of all the lines in the file containing the text is.
The standard way in which Mathematica works is to take any expression you give as input, evaluate the expression completely, and then return the result. When you are trying ...
Ever since Version 3 of Mathematica, there has been rich support for arbitrary mathematical typesetting and layout. Underlying all that power was a so-called box language, ...
Nearest
(Built-in Mathematica Symbol) Nearest[{elem_1, elem_2, ...}, x] gives the list of elem_i to which x is nearest. Nearest[{elem_1 -> v_1, elem_2 -> v_2, ...}, x] gives the v_i corresponding to the elem_i to ...