Sign in

C ++ A code problem

rhhfc edited in Mon, 19 Sep 2022


How do I feel that the sum of this code is not p (x), but something else? I feel that the bull's head is not right. The upper bound of Σ is n, and the lower bound is I = 0. Not every value is multiplied by x ^ 2 and then added.

2 Replies
commented on Mon, 19 Sep 2022

Wrong. It should be CI * x ^ I. (not x ^ 2)

commented on Mon, 19 Sep 2022

He wrote it wrong. His program is ∑ CiX ^ i. Not Σ CiX ^ 2,