WLJS LogoWLJS Notebook

ChessboardDistance

ChessboardDistance[u, v] gives the chessboard, Chebyshev, or sup norm distance between vectors u and v.

Examples

Distance between two points:

ChessboardDistance[{0, 0}, {3, 4}]
(* 4 *)

Same as Chebyshev distance:

ChessboardDistance[{1, 2, 3}, {4, 6, 5}]
(* 4 *)

Please visit the official Wolfram Language Reference for more details.

On this page