code: public static double min(final double... array) {
          // Validates input
          validateArray(array);
  
          // Finds and returns min
          double min = array[0];
          for (int i = 1; i < array.length; i++) {
              if (Double.isNaN(array[i])) {
                  return Double.NaN;
              }
              if (array[i] < min) {
                  min = array[i];
              }
          }
  
          return min;
      }
docs: <p>Returns the minimum value in an array.</p>
  
  @param array  an array, must not be null or empty
  @return the minimum value in the array
  @throws IllegalArgumentException if <code>array</code> is <code>null</code>
  @throws IllegalArgumentException if <code>array</code> is empty
  @see IEEE754rUtils#min(double[]) IEEE754rUtils for a version of this method that handles NaN differently
  @since 3.4 Changed signature from min(double[]) to min(double...)