Here you can find the source of div(double a, double[] b)
public static double[] div(double a, double[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] div(double a, double[] b) { if (a == 0) throw new IllegalArgumentException("Divison by zero"); double[] erg = new double[b.length]; for (int i = 0; i < b.length; i++) { erg[i] = b[i] / a;/* w ww.ja v a 2 s .c o m*/ } return erg; } }