magnitude method

  1. @deprecated
double magnitude()

Returns the magnitude, length or Euclidean norm of the vector.

Vector v = Vector([1.0, 1.0, 1.0]);
print(v.magnitude());

will print 1.7320508

Implementation

@deprecated
double magnitude() {
  return norm();
}