Post Reply 
(12C Platinum) Sums of Powers of N numbers
01-28-2019, 03:08 PM (This post was last modified: 01-30-2019 01:47 AM by Albert Chan.)
Post: #12
RE: (12C Platinum) Sums of Powers of N numbers
Modified Aitken's method can interpolate slope too, then recover interpolated value.
Example, with 5-digits precision, calculate LN(12.3), with tables of LN (integer domain):

LN(12.3) is between LN(12)=2.4849, and LN(13)=2.5649
So, LN(12.3) = 2.5 (2 digits accurate), only 3 digits slope required

Code:
X   LN(X)   Slopes, interpolate for X=12.3
12  2.4849
13  2.5649  0.0800
11  2.3979  0.0870  825
14  2.6391  0.0771  820  823

Each interpolated diagonals gained 1 digits accuracy, so only 4 points needed.
Recover interpolated slope to value:

LN(12.3) = 0.0823 * (12.3-12) + 2.4849 = 2.5096 (5 digits)

Interpolations needed are reduced (only 3 interpolations for cubic fit, down 50%)
Also, with slopes interpolated to full precision, recovered result may be more accurate.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (12C Platinum) Sums of Powers of N numbers - Albert Chan - 01-28-2019 03:08 PM



User(s) browsing this thread: 4 Guest(s)