Examples

Example problems

Series, products, and piecewise formulas. Each one opens in the documentation, where it can be solved.

Machin's formula for π

Twenty terms of each arctangent. The gap against π is one unit in the last place.

Open in the documentation

Binomial theorem

C(n, 0) is an empty product, so it is 1. The two ways of writing (1 + x)^n agree exactly.

Open in the documentation

Euler product for ζ(2)

The first eight primes. What is missing is the rest of the primes, about one percent of π²/6.

Open in the documentation

Lagrange interpolation

At a sample point the result is the sample, so y is 3. The branch j = i is 1, and the division by zero is never evaluated.

Open in the documentation

Square wave, twelve terms

The series uses only the odd harmonics. Near the jump the overshoot stays, which is the Gibbs phenomenon. Solve it to draw the chart.

Open in the documentation

A Hilbert matrix, built and solved

Each entry is an outer product, summed. The exact solution is the integer vector. d is roundoff: this matrix is badly conditioned.

Open in the documentation

Cayley–Hamilton

Z is the zero matrix. A 2×2 matrix satisfies its own characteristic equation. The trace and the determinant are read by index.

Open in the documentation

Mean, Newton, and a ranged product

The mean of 1, 2, 3, 4 is 2.5. Newton returns the square root of 2. The ranged sum is 30 and the product is 15.

Open in the documentation
© 2026 QED Solverworks LLC