Rudolf Adamkovič Personal site


Vector length

a.k.a.

Define

The non-negative scalar

\[\begin{equation*}
  \| \vec{v} \| = \sqrt{\vec{v} \cdot \vec{v}}.
\end{equation*}
\]

Imagine

… in the real plane \(\mathbb{R}^2\):

  1. Draw \(\vec{v}\) as a point \(P\).
  2. Measure the length from the origin to \(P\).

Implement

… in Scheme as



© 2024 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.