returnValue.coeff = in.coeff / divisor; long newDivideBy = divideBy / divisor; for (int i = 0; i < coeffs.length; i++) { returnValue.coeffs[i] = coeffs [i] / newDivideBy; };