UNPKG

@sgratzl/science

Version:

Scientific and statistical computing in JavaScript.

6 lines (4 loc) 101 B
import dot from './dot'; export default function length(p) { return Math.sqrt(dot(p, p)); };