Path: utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!teknowledge-vaxc!sri-unix!quintus!ok From: ok@quintus.uucp (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: How not to write a loop, revisited Message-ID: <172@quintus.UUCP> Date: 18 Jul 88 22:09:57 GMT References: <16276@brl-adm.ARPA> <329@accelerator.eng.ohio-state.edu> <12784@apple.Apple.COM> <10477@stb.UUCP> Sender: news@quintus.UUCP Reply-To: ok@quintus.UUCP (Richard A. O'Keefe) Organization: Quintus Computer Systems, Inc. Lines: 9 In article <10477@stb.UUCP> michael@stb.UUCP (Michael Gersten) writes: >Hmm, when I've written exponentiation routines I do it with logs and exp(). That's the obvious way to do it, but according to Cody & Waite in their classic "Software Manual for the Elementary Functions" it is _not_ a good idea. There are enough gotchas in the elementary functions that you really need to be able to rely on them as part of the language, and even then if you care about the results it is worth testing them. [Which is not to say that the elementary functions need special syntactic forms!]