6667686970717273747576
SumFunction1 sum = new SumFunction1(); int n = Math.min(coefficients.length, this.basis.size()); for (int i = 0; i < n; i++) { sum.addChild(new ScaledFunction1(coefficients[i], this.basis.get(i))); } return sum; }