[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45507] acos returns different results on big
From: |
Marco Caliari |
Subject: |
[Octave-bug-tracker] [bug #45507] acos returns different results on big input values |
Date: |
Sat, 30 Jan 2016 10:18:58 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 |
Follow-up Comment #11, bug #45507 (project octave):
Ah, float numbers. So, sqrt(1-x*x)==sqrt(-x*x) if real(x) >= 2^27 or imag(x)
>= 2^27. The same is true with 2^13 if x is single type. So, 2 to the power
ceil(log2(1/eps)/2+1).
Marco
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45507>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/