Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!randy From: randy@cs.tamu.edu (Randy Hutson) Newsgroups: comp.lang.c Subject: Re: # to the nth power Message-ID: <9750@helios.TAMU.EDU> Date: 1 Nov 90 18:28:44 GMT References: <90305.005050CJH101@psuvm.psu.edu-> <15984@mentor.cc.purdue.edu-> Sender: usenet@helios.TAMU.EDU Organization: Computer Science Department, Texas A&M University Lines: 16 In article <15984@mentor.cc.purdue.edu-> edgincd2@mentor.cc.purdue.edu (Chris Edgington *Computer Science Major*) writes: ->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 -> ->I don't know if this is what you are looking for, but this is a neat little ->trick to take a number to a power. -> -> Answer = exp(ln(Root)*Exponent); -> ->Chris Edgington I use an even neater trick! Answer = pow(Root, Exponent);