Pattern matching makes possible some of the most succinct and elegant programs in the Mathematica language—immediately compressing large numbers of conditional cases into ...
Mathematica provides a carefully chosen set of functions for accessing elements of lists either using indices or positions, or using patterns or criteria for their values.
ImageTake[image, n] gives an image consisting of the first n rows of image.ImageTake[image, -n] gives an image consisting of the last n rows of image.ImageTake[image, {row_1, ...
StringReplaceList["string", s -> sp] or StringReplaceList["string", {s_1 -> sp_1, s_2 -> sp_2, ...}] gives a list of the strings obtained by replacing each individual ...
Functions relating real numbers and integers. Extracting integer and fractional parts. IntegerPart[x] and FractionalPart[x] can be thought of as extracting digits to the left ...
You may wish to save your work in a format other than the default Mathematica notebook for sharing or publication. Mathematica has a very robust system for exporting your ...
Position[expr, pattern] gives a list of the positions at which objects matching pattern appear in expr. Position[expr, pattern, levelspec] finds only objects that appear on ...
Widely recognized as the world's most powerful list manipulation language, Mathematica added in Version 6.0 a number of important new functions. Each function was carefully ...
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 ...
Lists are very important structures in Mathematica. Lists allow you treat any kind of collection of objects as a single entity. Sometimes you need to pick out or extract ...