Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!ucbvax!sdcsvax!noscvax!marlin!aburto From: aburto@marlin.UUCP Newsgroups: net.micro.amiga Subject: Re: Followup: Aztec - good, bad, help. Message-ID: <629@marlin.UUCP> Date: Thu, 5-Jun-86 11:05:06 EDT Article-I.D.: marlin.629 Posted: Thu Jun 5 11:05:06 1986 Date-Received: Sat, 7-Jun-86 06:21:38 EDT References: <296@bucsb.bu.edu.UUCP> <379@sask.UUCP> Reply-To: aburto@marlin.UUCP (Alfred A. aburto) Organization: Naval Ocean Systems Center, San Diego Lines: 60 In article <379@sask.UUCP> hardie@sask.UUCP writes: >Has anyone tried out the trig functions and floating point in the Aztec >compiler? A friend of mine has had a lot of trouble with them. For example, >#define PI 3.1415926525987654321 /* don't worry about the exact value */ >main() >{ > printf("%f\n",PI); >} > >will print some outrageous value like 0.0922 etc. >but changing only the defined value to 3.14159 will make it print out a >more or less reasonable value. >He also tried out a program I have that generates data for a 'spider' which >is used in satellite tracking. If we use the lattice compiler then it outputs >exactly what my Vax 4.2bsd version prints out. But the Manx version only gets >about half the numbers right, even after we have corrected problems such as the >PI value above. >It appears to me that the sin and cos functions don't work too well near >PI/2 but I haven't looked into it real hard. >Any ideas? >Tnx >Pete >ihnp4!sask!hardie Newsgroups: net.micro.amiga Subject: Re: Followup: Aztec - good, bad, help. Summary: Expires: References: <296@bucsb.bu.edu.UUCP> <379@sask.UUCP> Sender: Reply-To: aburto@marlin.UUCP (Alfred A. aburto) Followup-To: Distribution: Organization: Naval Ocean Systems Center, San Diego Keywords: In article <379@sask.UUCP> hardie@sask.UUCP writes: >Has anyone tried out the trig functions and floating point in the Aztec >compiler? A friend of mine has had a lot of trouble with them. For example, >#define PI 3.1415926525987654321 /* don't worry about the exact value */ >main() >{ > printf("%f\n",PI); >} > >will print some outrageous value like 0.0922 etc. >but changing only the defined value to 3.14159 will make it print out a >more or less reasonable value. >He also tried out a program I have that generates data for a 'spider' which >is used in satellite tracking. If we use the lattice compiler then it outputs >exactly what my Vax 4.2bsd version prints out. But the Manx version only gets >about half the numbers right, even after we have corrected problems such as the >PI value above. >It appears to me that the sin and cos functions don't work too well near >PI/2 but I haven't looked into it real hard. >Any ideas? I don't have any ideas about Aztec C but I know that LATTICE V3.02 does not compute COS(PI/4) correctly. AAA