Re: log2() function from C standard library is inaccurate

2014-06-20 Thread Marco Atzeri
On 20/06/2014 01:25, Falk Tannhäuser wrote: I noticed that the log2() function in GNU Octave returns inaccurate results for many arguments that are exactly representable integer powers of 2. After discussion on the Octave mailing list https://savannah.gnu.org/bugs/?42583 it occurs that Octave doe

log2() function from C standard library is inaccurate

2014-06-19 Thread Falk Tannhäuser
I noticed that the log2() function in GNU Octave returns inaccurate results for many arguments that are exactly representable integer powers of 2. After discussion on the Octave mailing list https://savannah.gnu.org/bugs/?42583 it occurs that Octave doesn't have this problem on most other platform