|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #43349] asin() behaves differently from Matlab for arguments larger than 1 |
Date: | Tue, 07 Oct 2014 19:16:01 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.0 |
Follow-up Comment #19, bug #43349 (project octave): I don't understand why we should forward (x,0) to the complex asin function if x < 0 but (x,-0) if x >= 0. We're trying to define a function of a real-valued argument, so why should we assign a negative imaginary part for that value? I'm also not sure that checking for a zero imaginary part as I did in my second patch is really the best solution either. It's just slightly less duplicated code. I'll look at this a bit more, but I think we should strive for the solution that will be easiest to understand later. _______________________________________________________ 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] |