|
From: | Marco Caliari |
Subject: | [Octave-bug-tracker] [bug #45507] acos returns different results on big input values |
Date: | Sat, 30 Jan 2016 08:02:52 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 |
Follow-up Comment #9, bug #45507 (project octave): @ Andrew Thanks Andrew for converting my script into a working patch! Nice your trick to avoid sqrt * sqrt. If I'm right, you check whether sqrt(one - x*x) == sqrt(-x*x) for which the square root is trivial. But your limit 1e18 is a bit imprecise. Isn't it enough that fabs (re) > 2^27 or fabs (im) > 2^27? Marco _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45507> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |