Here you can find the source of divide(double[] numerator, double[] denominator)
Parameter | Description |
---|---|
numerator | a parameter |
denominator | a parameter |
public static double[] divide(double[] numerator, double[] denominator)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . ja v a 2 s . c o m*/ * This method divides each component in the numerator by its corresponding * component in the denominator. It is assumed that numerator and denominator * are the same size. The quotient is returned in a new array. * @param numerator * @param denominator * @return */ public static double[] divide(double[] numerator, double[] denominator) { double[] quotient = new double[numerator.length]; for (int i = 0; i < numerator.length; ++i) quotient[i] = numerator[i] / denominator[i]; return quotient; } }