public static double magnitude(double[] u){
  return Math.sqrt(dot(u,u));
}

public static double magnitude ( double [ ] u ) { return Math . sqrt ( dot ( u , u ) ) ; }
returns the magnitude ( euclidean norm ) of the specified vector .
