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

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

[Octave-bug-tracker] [bug #45507] acos returns different results on big


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #45507] acos returns different results on big input values
Date: Thu, 04 Feb 2016 09:40:45 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0

Follow-up Comment #14, bug #45507 (project octave):

Hi,

I tried 


write(6,*) acos((1.0d8,0.0d0))


in fortran and got (0.0000000000000000,-19.113827924512311). A part from the
sign of the imaginary part (which can be easly changed), no overflow due to
catastrophic cancellation. Why is it not possible to use the same standard
math library used by fortran (gfortran-4.8 in my case) and fix the sign later?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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