Trainers

Calculations and language exercises. Choose a topic and open a trainer.

Found: 39

Equation roots

2

Matrices and eigenvalues

7

Interpolation

3

Numerical integration

3

Differential equations

4

Optimization

4

Numerical errors

14

Bisection step bound

n = max(0, ⌈log₂((b−a)/(2ε))⌉). Counts interval halvings needed to bound the midpoint error.

Open

Fixed-point step bound

n = max(0, ⌈ln(ε(1−q)/(b−a))/ln(q)⌉), where 0 < q < 1 is a proven contraction bound throughout the interval.

Open

Enumeration step count

n = ⌈(b−a)/h⌉, h = multiplier × ε. A grid including both endpoints has n+1 nodes.

Open

Round to significant digits

Significant digits start at the first nonzero digit. For example, 0.0047287 to three digits is 0.00473.

Open

Round to decimal places

Set the number of decimal places. The answer string preserves trailing zeros, such as 10.0.

Open

Error of a difference

Δ(x₁−x₂) ≤ Δx₁ + Δx₂; the relative bound divides this sum by |x₁−x₂|.

Open

Compare relative accuracy

Compares Δx/|x| for two nonzero approximations. Lower relative error means higher accuracy.

Open

Sphere volume error

V = 4πR³/3. The linearised estimate includes errors in the radius and the approximation of π.

Open

Function conditioning

Relative condition number κ = |xf′(x)/f(x)|. At special points, a finite limit is shown where available.

Open

Quadratic coefficient precision

For ay²+by+c=0, estimates the allowed error in c for the requested correct digits in both real roots. a and b are treated as exact.

Open

Error from the last decimal place

Shows two conventions: half a unit in the last place for rounding, and one whole unit for the wide convention.

Open

Power error

For y = xᵖ and x > 0: Δy ≈ |p xᵖ⁻¹|Δx, relative error ≈ |p|Δx/x.

Open

Required correct digits

Finds a digit count so that one unit in the last place is strictly below |x| × tolerance. Uses the wide convention.

Open

Last-place validity

Compares absolute error with one unit in the last place and half that unit. 1 means correct; 0 means not guaranteed.

Open

Languages

2