Bruce Evans 7aac169e18 Added comments about the apparently-magic rational function used in
the second step of approximating cbrt(x).  It turns out to be neither
very magic not nor very good.  It is just the (2,2) Pade approximation
to 1/cbrt(r) at r = 1, arranged in a strange way to use fewer operations
at a cost of replacing 4 multiplications by 1 division, which is an
especially bad tradeoff on machines where some of the multiplications
can be done in parallel.  A Remez rational approximation would give
at least 2 more bits of accuracy, but the (2,2) Pade approximation
already gives 6 more bits than needed.  (Changed the comment which
essentially says that it gives 3 more bits.)

Lower order Pade approximations are not quite accurate enough for
double precision but are plenty for float precision.  A lower order
Remez rational approximation might be enough for double precision too.
However, rational approximations inherently require an extra division,
and polynomial approximations work well for 1/cbrt(r) at r = 1, so I
plan to switch to using the latter.  There are some technical
complications that tend to cost a division in another way.
2005-12-15 16:23:22 +00:00
..
2005-04-22 18:57:32 +00:00
2005-12-13 13:43:35 +00:00
2005-07-13 10:40:07 +00:00
2005-02-13 23:45:54 +00:00
2005-10-04 22:00:35 +00:00
2005-11-24 10:30:44 +00:00
2005-11-24 10:43:35 +00:00
2004-12-29 02:18:24 +00:00
2005-11-19 04:47:06 +00:00
2005-11-17 13:00:00 +00:00
2004-12-21 10:49:29 +00:00
2005-11-24 10:54:47 +00:00
2005-11-19 04:47:06 +00:00
2005-06-04 10:48:21 +00:00
2005-11-24 11:14:06 +00:00
2004-12-21 10:16:04 +00:00
2005-09-26 06:23:43 +00:00
2005-11-24 11:26:36 +00:00