(semi-OT) Robin Green's Faster Math presentations

bbc micro/electron/atom/risc os coding queries and routines
Post Reply
User avatar
BigEd
Posts: 6261
Joined: Sun Jan 24, 2010 10:24 am
Location: West Country
Contact:

(semi-OT) Robin Green's Faster Math presentations

Post by BigEd »

This is general, rather than Acorn, but lots of interesting information inside
If you like reading about math approximations and “theoretical vs. actual” algorithms, there’s a fascinating series of presentations by Robin Green. I don’t know if videos exist anywhere, but the slides come with plenty of notes
Some overlap within: From the first of three presentations:
If you analyze the maximal error of an interpolated sin table you can show that a 33-entry table is sufficient to reconstruct a 32-bit floating point sine and cosine at the same time.
The code mentions “Cody & Waite” in many places – a title so out of print that many people work from their own photocopied version of the title, copies of copies that are handed down between researchers
[I think Sophie referred to this work, in reference to BBC Basic's maths routines]
The dramatic story of how IEEE754 was created is a story of David vs. Goliath. ... There was a standoff between Digital Equipment’s VAX- format that had worked well in the minicomputer world for a decade, and the Kahan-Coonen-Stone (K-C-S) proposal from Intel.
On the web there are a lot of presentations on “advanced” computer math that end up using Taylor series to generate polynomial approximations for famous math functions. You’ve seen them in your Calculus textbook, they’re the definitions for Exp, Tan, Sin that you leaned at school so clearly that must be how they are calculated on computers. Truncate the series, generate a remainder and voila, you’re golden. Wrong.
(Emphasis added!)

via which links to How do calculators compute sine?
Post Reply

Return to “programming”