code: static public double xy(double[] x, double[] y) {
      double result = 0.0;
      for (int i = 0; i < x.length; i++) {
        result += (x[i] * y[i]);
      }
  
      return (result);
    }
docs: (1xD) row vector * (Dx1) column vector = (1) scalar