In many kinds of numerical computations, it is convenient to introduce approximate functions. Approximate functions can be thought of as generalizations of ordinary ...
There are many situations where one wants to find a formula that best fits a given set of data. One way to do this in Mathematica is to use Fit. Basic linear fitting. Here is ...
Defining local constants. Module allows you to set up local variables, to which you can assign values and then change them. Often, however, all you really need are local ...
int MLTransferToEndOfLoopbackLink (MLINK d, MLINK s) transfers the full contents of the loopback link s to the destination link d.
Basic descriptive statistics operations. Given a list with n elements x_i, the mean Mean[list] is defined to be μ(x)OverscriptBox[x, _]∑x_i/n. The variance Variance[list] ...
Take
(Built-in Mathematica Symbol) Take[list, n] gives the first n elements of list. Take[list, -n] gives the last n elements of list. Take[list, {m, n}] gives elements m through n of list. Take[list, seq_1, ...
Select
(Built-in Mathematica Symbol) Select[list, crit] picks out all elements e_i of list for which crit[e_i] is True. Select[list, crit, n] picks out the first n elements for which crit[e_i] is True.
Nearest is used to find elements in a list that are closest to a given data point. Nearest function. Nearest works with numeric lists, tensors, or a list of strings.
Clip
(Built-in Mathematica Symbol) Clip[x] gives x clipped to be between -1 and +1. Clip[x, {min, max}] gives x for min <= x <= max, min for x < min and max for x > max. Clip[x, {min, max}, {v_min, v_max}] ...
Mathematica incorporates the latest algorithms—some original to Wolfram Research—for evaluating mathematical constants to any number of digits of precision. For basic ...