|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #43349] asin behaves differently from Matlab for arguments larger than 1 |
Date: | Mon, 06 Oct 2014 16:53:08 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 |
Follow-up Comment #6, bug #43349 (project octave): Actually, something else must be going on. Direct calculation within Octave of the expression used in the calculation -i * log (i*x + sqrt (1.0 - x*x)) produces the correct answer octave:9> -i * log (2i + sqrt (-3)) ans = 1.5708 - 1.3170i octave:10> -i * log (-2i + sqrt (-3)) ans = -1.5708 + 1.3170i So after calculation, as it is passed back to the Octave interpreter something is flipping the sign bit. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?43349> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |