Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.lang.c Subject: Re: Testing math library (libm) for new processor? Message-ID: <8235@boring.cwi.nl> Date: 28 Jun 89 19:53:14 GMT References: <2038@hub.ucsb.edu> <500@chem.ucsd.EDU> Organization: CWI, Amsterdam Lines: 16 In article <2038@hub.ucsb.edu> grosen@amadeus.ucsb.edu (Mark D. Grosen) writes: > > I am writing a math library (equivalent to libm.a on most UNiX systems) for > a new processor. (Functions like sin, cos, log, etc.) I would appreciate > any suggestions on how to test these routines. > You ought to have a look at the book "Software Manual for the Elementary Functions" by Cody and Waite. It describes how to implement these functions, but also gives extensive test programs. It contains a few errors, on the other hand the descriptions are very clear and it describes a number of pitfalls both in design as well as in testing. It is however based on Fortran. -- dik t. winter, cwi, amsterdam, nederland INTERNET : dik@cwi.nl BITNET/EARN: dik@mcvax