Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: In search of cbrt() ... Keywords: Gaphics Gems, cbrt() for TC++ Message-ID: <14724@smoke.brl.mil> Date: 13 Dec 90 04:17:52 GMT References: Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 In article rcruz@paul.rutgers.edu (Rafael Cruz) writes: >... make use of the library function cbrt(). This library >is in the Unix math library but TC doesn't seem to support it. I don't know what version of UNIX you had in mind; it isn't in the math library in most known UNIX environments. However, if all it does is extract a cube-root, it's trivial to emulate: #include #define cubrt(x) pow(x,1.0/3.0)