Here you can find the source of min(double[] a, double[] b)
public static double[] min(double[] a, double[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] min(double[] a, double[] b) { if (a.length != b.length) { throw new IndexOutOfBoundsException("The length of two arrays must be equal"); }// ww w. ja v a 2 s . c o m int n = a.length; double[] c = new double[n]; for (int i = 0; i < n; i++) { c[i] = a[i] < b[i] ? a[i] : b[i]; } return c; } }