Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!uunet!unhd!jwm775 From: jwm775@uunet!unhd (Jonathan W Miner) Newsgroups: comp.lang.c Subject: Re: # to the nth power Message-ID: <1990Nov9.174217.27233@uunet!unhd> Date: 9 Nov 90 17:42:17 GMT References: <90305.005050CJH101@psuvm.psu.edu> Reply-To: jwm775@unhd.UUCP (Jonathan W Miner) Organization: Computing Information Services, University of New Hampshire Lines: 15 In article <90305.005050CJH101@psuvm.psu.edu> CJH101@psuvm.psu.edu (Carl J. Hixon) writes: >I appologize for bothering you computer wizards with such an elementary >question but, I'm floundering. Why am I unable to find an opperator which >raises a number to a power. (The fortran equivalent of x**n) Is there such >an opporator or do I need to write my own function? It seems like a terrible >oversite to me that such a common operation was overlooked. There is a standard C function pow(x,y) which returns x raised to the y. :x -- ----------------------------------------------------------------- Jonathan Miner | I don't speak for UNH, and UNH does not jwm775@unhd.unh.edu | speak for me! (603)868-3416 | Rather be downhill skiing... or hacking...