|
|
|
|
|
by stiff
4778 days ago
|
|
Actually, it's a pretty interesting idea. He basically wants to keep track of the last n operations with every given number and take advantage of this history to try to minimize the floating point error. To compare 2.2 with exp(6.5) or anything else you just evaluate the expression, but taking advantage of possible reorderings or simplifications. Your critique really boils down to: Most equations that aren't trivial cannot be simplified. but this is not true, just take a look at what Wolfram Alpha or Mathematica can do. |
|
This may actually not be a problem in most instances, however. It really depends on the use case, but outside of scientific computing/engineering design we're not usually doing computations to find roots of degree >= 5 polynomials.
OTOH, as pointed out by GP, it is easy to construct 'unsimplifiable' operations which after some time may grow too large.
My conclusions are, this certainly cannot be implemented on practical systems without some care -- it's not as straightforward as it looks at first -- and certainly not a better default as is right now.