getL2norm function

double getL2norm(
  1. List vec
)

Implementation

double getL2norm(List vec) {
  return vec[0] * vec[0] + vec[1] * vec[1];
}