For Programmers: Free Programming Magazines  


Home > Archive > AWK > September 2004 > Re: pow(x,y) function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: pow(x,y) function
Robert Stearns

2004-09-21, 8:55 am

For positive x, pow(x,y) = exp(y*ln(x))

Vikas Agnihotri wrote:
> gawk 3.1.0 on Solaris 8
>
> I was surprised that there is no built-in pow(x,y) function.
>
> Can someone help me write one? If I remember my high school math right,
> there is a way to write pow(x,y) using the builtin log/exp functions?
>
> Help? Thanks


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com