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

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

[Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not par


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard
Date: Thu, 13 Jan 2022 12:49:45 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55

Follow-up Comment #11, bug #61812 (project octave):

In lo-ieee.h, <cmath> is included before "octave-config.h". That should
probably be changed anyway (and any other files that include headers before
"octave-config.h"). Or is there a good reason why "octave-config.h" is
included after other headers in some files?

@jwe: I searched some forums (stackoverflow and alike) for this topic. Some
users are commenting that "unforeseeable things" might occur if pi is defined
differently in different places. `4.0*atan(1.0)` seems to be used widely to
get the exact PI that is used by the library...

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61812>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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