code: static double min(double[] values) {
          double min = values[0];
          for (double value : values)
              if (value < min) min = value;
          return min;
      }
docs: Analog of Math.min that returns the largest double value in an array of double.
  
  @param   values  the values to be searched for the smallest value among them
  @return   the smallest value among a set of given values