octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43349] asin() behaves differently from Matlab


From: Rik
Subject: [Octave-bug-tracker] [bug #43349] asin() behaves differently from Matlab for arguments larger than 1
Date: Tue, 07 Oct 2014 05:27:06 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0

Follow-up Comment #18, bug #43349 (project octave):

If I swap out the signbit call and just use x < 0 in the test then the
performance advantage is down to 0.5%.


  return fabs (x) > 1.0 ? asin (Complex (x, x < 0 ? 0.0 : -0.0))
                        : Complex (asin (x));


I'd say it is now just a question of which is more appealing code.  I think
modifying the phase angle is less invasive, but it might run into differences
between compilers and platform differences on Windows.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43349>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]