The uniform metric on a set of bounded real-valued functions on XX is defined by

d∞(f,g)=sup⁡x∈X∣f(x)−g(x)∣.d_\infty(f,g)=\sup_{x\in X} |f(x)-g(x)|.

Equivalently, d∞(f,g)=∥f−g∥∞d_\infty(f,g)=\|f-g\|_\infty where ∥⋅∥∞\|\cdot\|_\infty is the .

Remarks

This is a on the space of bounded functions, and convergence with respect to d∞d_\infty is exactly . Many compactness and approximation results for functions are phrased in terms of this metric on .

Examples
  • On [0,1][0,1], with f(x)=xf(x)=x and g(x)=0g(x)=0, one has d∞(f,g)=1d_\infty(f,g)=1.
  • On [0,1][0,1], for fn(x)=x/nf_n(x)=x/n, d∞(fn,0)=1/n→0d_\infty(f_n,0)=1/n\to 0, so fn→0f_n\to 0 uniformly.