By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,389 Members | 1,881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,389 IT Pros & Developers. It's quick & easy.

pow() function implementation

P: n/a
Hi,

Does anybody know how pow() function is implemented in the standard
libraries of visual c++ 6.0 ?

Thanks,
Arik
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Arik Peltz wrote:
Hi,

Does anybody know how pow() function is implemented in the standard
libraries of visual c++ 6.0 ?


Probably something like:

double pow(double x, double y)
{
return exp(y * log(x));
}

--
"Codito ergo sum"
Roel Schroeven
Jul 19 '05 #2

P: n/a
On Thu, 07 Aug 2003 07:46:39 GMT, Roel Schroeven <94********@sneakemail.com> wrote:
Arik Peltz wrote:
Hi,

Does anybody know how pow() function is implemented in the standard
libraries of visual c++ 6.0 ?


Probably something like:

double pow(double x, double y)
{
return exp(y * log(x));
}


In Visual C++ 7.0 this is one of the few functions for which the source
code is not provided. It's written in assembly, and is a bit more
complicated than the above would indicate... ;-)

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.