Summation on HP 42S
|
09-24-2018, 04:20 PM
(This post was last modified: 09-24-2018 04:42 PM by Albert Chan.)
Post: #16
|
|||
|
|||
RE: Summation on HP 42S
(09-24-2018 01:52 PM)Thomas Klemm Wrote:Quote:I normally just fit the data to search for the formula (assume I don't cheat by googling) I could never remember Forward Difference formula, without looking up. Instead, I use the Lagrange formula, which work for uneven intervals too. The formula look complicated, but it is very mechanical, easy to remember. Fitting a cubic sum = n * quadratic, sum / n = (-2/1) \((n-2)(n-3)\over(1-2)(1-3)\) + (-4/2) \((n-1)(n-3)\over(2-1)(2-3)\) + (-4/3) \((n-1)(n-2)\over(3-1)(3-2)\) = -(n-2)(n-3) + 2(n-1)(n-3) - (2/3)(n-1)(n-2) = (-n^2 + 5 n - 6) + (2 n^2 - 8 n + 6) + (-2/3 n^2 + 2 n - 4/3) = n^2/3 - n - 4/3 sum = n * (n^2/3 - n - 4/3) = n/3 * (n^2 - 3 n - 4) = n(n+1)(n-4) / 3 Edit: Forward Difference Formula is very neat, without even evaluate sums. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)