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: John W. Eaton
Subject: [Octave-bug-tracker] [bug #43349] asin() behaves differently from Matlab for arguments larger than 1
Date: Thu, 09 Oct 2014 02:42:00 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.0

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

Again?  Ugh.

I think my patch https://savannah.gnu.org/support/download.php?file_id=32234
is the right thing to do.  If the imaginary part of x is -0, then x*x will
have +0 as the imaginary part, and that looks like a real number, so 1-x*x
should not generate a negative imaginary part. Likewise if x has +0 as the
imaginary part, it looks like a real number, so x*x should be real, so 1-x*x
should not have a negative imaginary part. Does that make sense? In any case
and FWIW, I think it is compatible with Matlab. 

    _______________________________________________________

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]