Smallest Enclosing Circle Calculator

Given points $p_1,\ldots,p_n$ in $R^d$, where $d=2,3$ and $n\geqslant 2$, this calculator finds a circle or sphere of the smallest radius that contains all the points.

Input Data

The $n$ points are entered as $n\times 2$ matrix for the smallest-circle problem, or $n\times 3$ matrix for the smallest sphere. The columns of the matrix represents x, y, z of the points. See Input Data for how to enter data to a real matrix.

Smallest Circle/Sphere Calculator