Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!dptg!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: Implementation of pow(3m) function Keywords: math-library exponentiation C Message-ID: <11150@alice.UUCP> Date: 6 Aug 90 18:47:25 GMT References: <1990Aug2.120706.25713@bnrgate.bnr.ca> <13474@smoke.BRL.MIL> <10803@crdgw1.crd.ge.com> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 19 In article <10803@crdgw1.crd.ge.com>, volpe@underdog.crd.ge.com (Christopher R Volpe) writes: > In article <11143@alice.UUCP>, ark@alice.UUCP (Andrew Koenig) writes: > |>If such an > |>implementation uses exp and log for the ordinary cases, it will > |>almost surely not be monotonic. That is, it will be possible to > |>find positive x, y, and z such that y > z and pow(x,y) < pow(x,z). > I sure hope so, since there are trivial real-life cases where this is > true. E.g.: x=0.5, y=3, z=2. pow(x,y)=.125 < pow(x,z)=.25 Sorry about that. I meant x>1, y>z, z>0. -- --Andrew Koenig ark@europa.att.com