All pastes #2109115 Raw Edit

Anonymous

public text v1 · immutable
#2109115 ·published 2012-02-02 19:57 UTC
rendered paste body
if (polyA.length >= polyB.length) {
	polychoice = 1;
	for (int p = 0; p < polyB.length; p++) {
		int coefA;
		int coefB;
		coefA = polyA[p].getCoef();
		coefB = polyB[p].getCoef();
		coefA = coefA + coefB;
		polyA[p].setCoef(coefA);

	}
} else {
	polychoice = 2;
	for (int p = 0; p < polyA.length; p++) {
		int coefA;
		int coefB;
		coefA = polyA[p].getCoef();
		coefB = polyB[p].getCoef();
		coefA = coefA + coefB;
		polyB[p].setCoef(coefA);

	}

}