In many computations you are concerned only with the final result of evaluating the expression given as input. But sometimes you also want to collect expressions that were ...
Lists are widely used in Mathematica, and there are many ways to construct them. Some explicit ways to construct lists. This gives a table of the first five powers of 2.
A typical package written in Mathematica introduces several new symbols intended for use outside the package. These symbols may correspond for example to new functions or new ...
When you do symbolic calculations, it is quite easy to end up with extremely complicated expressions. Often, you will not even want to see the complete result of a ...
In doing numerical operations like NDSolve and NMinimize, Mathematica by default uses machine numbers. But by setting the option WorkingPrecision->n you can tell it to use ...
Counting roots of polynomials. CountRoots accepts polynomials with Gaussian rational coefficients. The root count includes multiplicities. This gives the number of real roots ...
Just as Mathematica allows you to define how expressions should be evaluated, so also it allows you to define how expressions should be formatted for output. The basic idea ...
When you do long calculations, it is often convenient to give names to your intermediate results. Just as in standard mathematics, or in other computer languages, you can do ...
Converting between numbers and lists or strings of digits. Here is the list of base 16 digits for an integer. This gives a list of digits, together with the number of digits ...
A typical Mathematica notebook containing text, graphics, and Mathematica expressions. The brackets on the right indicate the extent of each cell. Mathematica notebooks are ...