Reddit Reddit reviews Computer Approximations

We found 2 Reddit comments about Computer Approximations. Here are the top ones, ranked by their Reddit score.

Computers & Technology
Books
Computer Science
AI & Machine Learning
Computer Approximations
Used Book in Good Condition
Check price on Amazon

2 Reddit comments about Computer Approximations:

u/iwontdothatagain · 7 pointsr/microcontrollers

The best book on all things floating-point I think is Muller et al., Handbook of Floating-Point Arithmetic (2010). It's a whopping 580 pages of real talk. Everything you need to know about (short of implementing it yourself) is examined: Floating-point formats, history, correct rounding, IEEE standard compatibility (both binary and decimal floats), radix conversion, and the basic functions addition, subtraction, multiplication, division, fused-multiply-add, and square roots. A whole chapter (130 pages) discusses the implementation of each of these functions. Transcendental functions are mentioned, but better looked up elsewhere.

Some real-world implementations with source code:

u/jacobolus · 6 pointsr/math

> how trig functions in a calculator actually work [without trigonometry]

This is not really sensible. What people mean by “trigonometry” is “the study of the circular (‘trigonometric’) functions”. Anything that calculators do to compute trigonometric functions is (by definition) trigonometry.

The word trigonometry is somewhat of a misnomer. There is a great deal of interesting geometry (including metrical geometry) of triangles which we do not include under “trigonometry”, and much of what we consider “trigonometry” doesn’t really have to do with triangles per se.

As for how calculators compute sines and cosines: there are several possible methods depending on what kind of hardware is available. One method that many handheld calculators use and which used to be more common on computers than now is the CORDIC algorithm

In practice most of the time trigonometric functions these days are implemented using some domain reduction followed by a polynomial approximation.

If you are curious you could try Hart’s (1978) book Computer Approximations, https://amzn.com/0882756427/