Using the guard, round, and sticky bits, it is possible to always compute, = >in a reasonable time, the nearest rounded value for addition, subtraction, = >multiplication, division - and even square root.
However, according to the Wikipedia page on the IEEE 754 standard, while th= >is was all the 1985 standard asked, the current standard insists on correct=
rounding even for the transcendental functions - log and trig functions. U=
nlike rounding to a precision of a unit just over half the least difference=
between floating-point numbers, this can take a long time in a few, rare, =
cases.
Even so, some math libraries are currently offered, so says Wikipedia, whic= >h meet this standard. I am surprised. And I hardly think that it is wise to=
make such a requirement, or attempt to meet it, for most implementations.
Even getting the nearest rounded value for division, while easy enough for = >some algorithms, imposes an unreasonable burden if one wishes to use a fast=
division algorithm such as Newton-Raphson or Goldschmidt.
Even getting the nearest rounded value for division, while easy enough for = >some algorithms, imposes an unreasonable burden if one wishes to use a fast=
division algorithm such as Newton-Raphson or Goldschmidt.
However, according to the Wikipedia page on the IEEE 754 standard, while this was all the 1985 standard asked, the current standard insists on correct rounding even for the transcendental functions - log and trig functions.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 407 |
Nodes: | 16 (2 / 14) |
Uptime: | 11:53:44 |
Calls: | 8,554 |
Calls today: | 6 |
Files: | 13,219 |
Messages: | 5,925,363 |