Functions for constructing matrices. This generates a 2×2 matrix whose i,j^th entry is a[i,j]. Here is another way to produce the same matrix.
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 ...
The general solution to a differential equation contains undetermined coefficients that are labeled C[1], C[2], and so on. This example has one undetermined parameter, C[1]. ...