Numerical integration functions. This finds a numerical approximation to the integral ∫_(0)^∞ e^-x^3 x. Here is the numerical value of the double integral ∫_(-1)^1 dx ...
Here is one way to get multiple minima: call NMinimize multiple times with different random seeds, which will cause different optimization paths to be taken. This defines a ...
As discussed in "Exact and Approximate Results", Mathematica can handle approximate real numbers with any number of digits. In general, the precision of an approximate real ...
Mathematica provides a variety of functions for manipulating strings. Most of these functions are based on viewing strings as a sequence of characters, and many of the ...
Orthogonal polynomials. Legendre polynomials LegendreP[n,x] arise in studies of systems with three-dimensional spherical symmetry. They satisfy the differential equation ...
Partitioning elements in a list. This partitions in blocks of 3. This partitions in blocks of 3 with offset 1.
The Mathematica side of a MathLink connection is set up to work exactly the same on all computer systems. But inevitably there are differences between external programs on ...
Finding lines that contain specified text. Here is a file containing some text. This returns a list of all the lines in the file containing the text is.
In a typical Mathematica package, there are generally two kinds of new symbols that are introduced. The first kind are ones that you want to 'export' for use outside the ...
When you generate a very large output expression in Mathematica, you often do not want to see the whole expression at once. Rather, you would first like to get an idea of the ...