/** * Returns this sum of function terms as human-readable C-code. * * @param fname the name of the function z(x,y) = sum(C[i]*F[i](x,y), i, n) * @param x the name of the x variable * @param y the name of the y variable * * @return the C-code */ public String createCFunctionCode(final String fname, final String x, final String y) { final StringBuffer sb = new StringBuffer(256 + getNumTerms() * 10); appendCFunctionCodeStart(fname, x, y, sb); appendCFunctionCodeBody(fname, x, y, sb); appendCFunctionCodeEnd(fname, x, y, sb); return sb.toString(); }
numPointsRequired = (order + 2) * (order + 1) / 2; } else { numPointsRequired = 2 * potentialPolynomial.getNumTerms();