The distance to the hyperplane from an origin in an n-dimensional Euclidean space Rn\mathbb{R}^nRn is: d=∣b∣∥w∥=∣b∣w12+w22+⋯+wn2 d=\frac{|{}b|{}}{\|{}\mathbf{w}\|{}}=\frac{|{}b|{}}{\sqrt{w_{1}^{2}+w_{2}^{2}+\dots +w_{n}^{2}}} d=∥w∥∣b∣=w12+w22+⋯+wn2∣b∣