Turning conditions into numbers. Boole[expr] is a basic function that turns True and False into 1 and 0. It is sometimes known as the characteristic function or indicator ...
Mathematica can work with polynomials whose coefficients are in the finite field Z_p of integers modulo a prime p. Functions for manipulating polynomials over finite fields. ...
Functions for rearranging lists. This sorts the elements of a list into a standard order. In simple cases like this, the order is alphabetical or numerical. This sorts the ...
In using Mathematica, you sometimes need to repeat an operation many times. There are many ways to do this. Often the most natural is in fact to set up a structure such as a ...
MathLink allows you to run external programs under whatever debugger is provided in your software environment. MathLink-compatible programs are typically set up to take ...
Sending email from Mathematica. The examples below require that the default mail account settings have been configured in the Internet Connectivity > Mail Settings tab of the ...
Simplifying with assumptions. Mathematica does not automatically simplify this, since it is only true for some values of x. Sqrt[x^2] is equal to x for x≥0, but not otherwise.
Solving equations involving power series. Here is a power series. This gives an equation involving the power series.
You can tell a lot about what "type" of expression something is by looking at its head. Thus, for example, an integer has head Integer, while a list has head List. In a ...
Testing and searching for elements of lists. "Getting Pieces of Lists" discusses how to extract pieces of lists based on their positions or indices. Mathematica also has ...