|
| From: | Falk Tannhäuser |
| Subject: | [Octave-bug-tracker] [bug #42583] log2() returns inaccurate result for many integer powers of 2, unlike Matlab |
| Date: | Thu, 19 Jun 2014 06:30:08 +0000 |
| User-agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0 |
Follow-up Comment #3, bug #42583 (project octave):
Interestingly, with
n = -323:308;
errors = find(log10(10.^n) ~= n) - 324
I get
errors = -323 : -312
i.e. despite the fact that 10.^n can't be precisely represented for n<0 or
n>22, errors occur only for denormalized arguments, which is unsurprising.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42583>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |