Re: [Algorithms] Formula for Damping f times
Brought to you by:
vexxed72
From: Robin G. <rob...@gm...> - 2009-06-09 00:10:29
|
On Sat, Jun 6, 2009 at 2:32 AM, Fabian Giesen<f.g...@49...> wrote: > > But since the log is only done on k (which is, presumably, a constant), > you can just store log(k) directly and do exp(log(k)*t) (with some small > loss in accuracy that's unlikely to be a problem). Yes, in theory, but these tables have to be run using a higher number of bits than normal as they have a large effect in the reconstructed value. Check out the use of static tables with a second "continuation" table in "powf.c" from the Cephes single precision library "single.tgz". Compare it to the simplicity of "exp2f.c". http://www.netlib.org/cephes/ - Robin Green. |