alt.hn

3/26/2026 at 7:47:01 PM

How much precision can you squeeze out of a table?

https://www.johndcook.com/blog/2026/03/26/table-precision/

by nomemory

3/26/2026 at 7:49:44 PM

When I was in high school I thought book this was so much fun

http://182.160.97.198:8080/xmlui/bitstream/handle/123456789/...

which is all about the kind of numerical analysis you would do by hand and introduces a lot of really cool math like the calculus of differences

https://en.wikipedia.org/wiki/Finite_difference

by PaulHoule

3/27/2026 at 9:00:31 AM

In order to mitigate link rot, the book is Numerical Analysis Second Edition, from Francis Scheid (Schaum's Outlines)

by harperlee

3/27/2026 at 10:41:56 AM

Ah, very cool. My personal favourite is this one: https://archive.org/details/engineeringformu00giec_0/page/n5...

My father owned a copy of it which I still have to this day. It had a lot of different formulas than the ones we were taught in school, and I liked the range of topics that it covered.

by animal531

3/27/2026 at 3:00:59 AM

The typography and design inside the book is beautiful but the cover looks like an old bargain-store flyer. There's an expression about that, something about judging a book by its cover? I can't remember exactly.

by Rendello

3/27/2026 at 1:29:49 PM

I just tried a portion of the url & it took me to Bangladesh university - http://182.160.97.198:8080/xmlui/bitstream/handle/ . Intersecting. When I go to root of this url, the error messages are listing the softwares this site is powered by. Generally this is not considered a secure way of protecting a site.

by the_arun

3/26/2026 at 11:40:48 PM

i've been missing this knowledge! thank you for the recommendation.

by yababa_y

3/26/2026 at 8:25:29 PM

Nitpicking:

> You’re never going to get error less than 10E−15 since that’s the error in the tabulated values,

If you have like 100 (or 400) values in the table, you can squeeze one more digit.

In the simple case, imagine you have the constant pi, with 15 digits, repeated 100 times. If the rounding was done in a random direction like

  floor(pi * 1E15 + random() - 1/2 ) / 1E15
then you can use statistic to get an average with an error that is like K/sqrt(N) where K is a constant and N is the number of samples. If you were paying attention in you statistic clases, you probably know the value of K, but it's not my case. Anyway, just pick N=100 or N=400 or something like that and you get another digit for "free".

Nobody builds a table for a constant and uses a uniform offset for rounding. Anyway, with some smooth function that has no special values in the points where it's sample, the exact value of the cut decimal is quite "random" and you get a similar randomization.

by gus_massa

3/26/2026 at 11:53:00 PM

Also nobody in his right mind uses lookup tables where the table value is actually the float approximation of the true f(x) - you choose the support values to minimize an error (e.g. mse) of a dense sampling of your interpolated value over x (or, in the limit, the integral of the chosen error function between the true curve and the interpolation of your supports). If you want to e.g. approximate a convex function using linear interpolation, all the tabulated values f'(x) would be <= the true f(x).

by _0ffh

3/27/2026 at 4:36:39 AM

The true value is far more useful in a lot of cases. If you're building a table indexed by the upper mantissa bits of the float, for example, it's difficult to distribute the error properly across all intervals.

by AlotOfReading

3/27/2026 at 7:39:23 PM

I can't know how to hear anymore about tables

by spacebacon