Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Testing math library (libm) for new processor? Message-ID: <1989Jun29.155325.28676@utzoo.uucp> Organization: U of Toronto Zoology References: <2038@hub.ucsb.edu> <2035@dataio.Data-IO.COM> Date: Thu, 29 Jun 89 15:53:25 GMT In article <2035@dataio.Data-IO.COM> bright@dataio.Data-IO.COM (Walter Bright) writes: > >The best one is: > "Software Manual For The Elementary Functions" Note, however, that Cody&Waite is old. If your machine uses IEEE floating point (fairly likely these days), you should not be writing your own math library -- you should be picking up the freely-redistributable 4.3BSD math library, which had input from people like Kahan and is almost certainly better than anything you can do yourself in any reasonable length of time. Kahan commented, as I recall, that there is nothing wrong with Cody&Waite, but their stuff is aimed at old, ill-behaved floating-point hardware, and on IEEE hardware you can do better. The 4.3 math library appeared in comp.sources.unix late last year. -- NASA is to spaceflight as the | Henry Spencer at U of Toronto Zoology US government is to freedom. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu