If you have a list of elements, it is often important to be able to apply a function separately to each of the elements. You can do this in Mathematica using Map. This ...
Finding and setting values of symbols. Mathematica effectively stores all definitions you give as lists of transformation rules. When a particular symbol is encountered, the ...
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 ...
Mathematica has a rich syntax carefully designed for consistency and efficient, readable entry of Mathematica's many language, mathematical, and other constructs. In addition ...
StringReplace["string", s -> sp] or StringReplace["string", {s_1 -> sp_1, s_2 -> sp_2, ...}] replaces the string expressions s_i by sp_i whenever they appear as substrings of ...
Modules and Local Variables Local Constants How Modules Work
FromCoefficientRules[list, {x_1, x_2, ...}] constructs a polynomial from a list of rules for exponent vectors and coefficients.
Mathematica treats equations as logical statements. If you type in an equation like x^2+3x==2, Mathematica interprets this as a logical statement which asserts that x^2+3x is ...
Unless f is a flat function, a pattern like f[x_,y_] stands only for instances of the function with exactly two arguments. Sometimes you need to set up patterns that can ...
In doing a calculation with Mathematica, you usually go through a sequence of steps. If you want to, you can do each step on a separate line. Often, however, you will find it ...