|
| From: | Carlo de Falco |
| Subject: | [Octave-bug-tracker] [bug #42583] log2() returns inaccurate result for many integer powers of 2, unlike Matlab |
| Date: | Thu, 19 Jun 2014 08:54:39 +0000 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:30.0) Gecko/20100101 Firefox/30.0 |
Follow-up Comment #4, bug #42583 (project octave):
With Octave 3.8.2 compiled with gcc 4.7 0n OSX 10.9.3,
I get:
>> n = -1074:1023;
>> errors = find(log2(pow2(n)) ~= n) - 1075
errors = []
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42583>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |