Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!deimos.cis.ksu.edu!sirius.cis.ksu.edu!tar From: tar@sirius.cis.ksu.edu (Tim Ramsey) Newsgroups: comp.sources.games.bugs Subject: Re: Lunar Lander Message-ID: <2042@deimos.cis.ksu.edu> Date: 1 Jun 89 06:53:39 GMT References: <107518@sun.Eng.Sun.COM> Sender: news@deimos.cis.ksu.edu Reply-To: tar@sirius.cis.ksu.edu (Tim Ramsey) Organization: Kansas State University, Dept of Computing & Information Sciences Lines: 22 In article <107518@sun.Eng.Sun.COM> falk@sun.Eng.Sun.COM (Ed Falk) writes: >In article , jt1o+@andrew.cmu.edu (Joseph L. Traub) writes: >> I have a small problem with Lunar Lander. The values M_PI and M_PI_2 >> are never defined, and I don't know what they should be. I am assuming >> that they are 3.14159 and 2 * 3.14159, but I would like a response to >> tell me what they should really be. >They should be defined in Not under System V, they aren't (at least ATT SysV Rel3.1). Here's what I used, and everything seems to be working fine: #define M_PI 3.14159265358979323846 #define M_PI_2 1.57079632679489661923 Tim -- Timothy Ramsey Kansas State University BITNET: tar@KSUVAX1 Dept. of Computing and Information Sciences Internet: tar@ksuvax1.cis.ksu.edu UUCP: ...!{rutgers,texbell}!ksuvax1!tar HUNT! HUNT! HUNT!