(12C Platinum) Sums of Powers of N numbers
|
01-25-2019, 03:02 PM
(This post was last modified: 12-09-2020 11:43 AM by Albert Chan.)
Post: #10
|
|||
|
|||
RE: (12C Platinum) Sums of Powers of N numbers
Another trick about polynomial interpolation is do slopes.
Code: N Sum Offset=(4,100) Offset=(3,64) Offset=(2,18.5) Offset=(1,3) To get the actual interpolated values, undo Offset(s): Sum of N cubes = (((0.25 * (N-1) + 3) * (N-2) + 18.5) * (N-3) + 64) * (N-4) + 100 If above points order were reversed, we get different, but equivalent formula: Sum of N cubes = (((0.25 * (N-3) + 2) * (N-2) + 3.5) * (N-1) + 1) * N |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)