Quote:
Originally Posted by Jimbo
Can you post the new code?
|
Exactly the same as the old except that the declaration of t is now out of the loop.
Here:
int t = 1;
for(int i = 0; i < (num_poly - 1); i++)
for(int j = 1; j >= (num_poly - 1); j += 2)
{
coeff_sqr[i].at(j - t) = coeff[i] * coeff[j];
coeff_ans[i].at(j - t) = coeff[i] * lone[j];
coeff_ans2[i].at(j - t) = lone[i] * coeff[j];
lone_ans[i].at(j - t) = lone[i] * lone[j];
t++;
}