Java Array Divide div(double a, double[] b)

Here you can find the source of div(double a, double[] b)

Description

div

License

Open Source License

Declaration

public static double[] div(double a, double[] b) 

Method Source Code

//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;
    }
}

Related

  1. arrayDivide(double[] a, double[] b)
  2. arrayDivide(double[] d1, double denominator)
  3. arrayDivision(double[] array, double number)
  4. div(final int[] result, final int[] vector, final int[] scale)
  5. div(float[] items, int offset, int length, float divisor)
  6. div(float[] items, int offset, int length, float divisorX, float divisorY)
  7. div(float[] nums, float n)