Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!alberta!sask!hardie From: hardie@sask.UUCP (Peter Hardie ) Newsgroups: net.micro.amiga Subject: Re: Followup: Aztec - good, bad, help. Message-ID: <379@sask.UUCP> Date: Tue, 3-Jun-86 14:40:04 EDT Article-I.D.: sask.379 Posted: Tue Jun 3 14:40:04 1986 Date-Received: Sat, 7-Jun-86 03:42:04 EDT References: <296@bucsb.bu.edu.UUCP> Organization: University of Saskatchewan, CANADA Lines: 22 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