Asked by:
Source code for power function
Question

I am looking for the actual source code for a pow() function not source code that implements the pow function. This can be of any C++ library.
 Moved by Wesley Yao Tuesday, March 16, 2010 3:43 AM algorithm question (From:Visual C++ General)
All replies

Did you try right click, go to implementation?Also read this article, it might apply to you http://www.codeproject.com/KB/debug/powproblem.aspx
Whiter than the white is UV bright! 

Visual Studio 2008 only has "Go to Definition" and "Go to Declaration" when using the pow() <cmath> Visual Studio Displays a dialog box stating that pow() is not declared and pow is not defined, respectively. For .NET System::Math::Pow() Visual Studio does nothing.


>I am looking for the actual source code for
>a pow() function not source code that
>implements the pow function.
What's the difference? The "actual source code
for a pow() function" "implements the pow
function", doesn't it?
Have you read this thread?
http://www.gidforums.com/t12889.html
 Wayne 



What's the difference? The "actual source code
True it does. But what I meant is that when I did searches for the source code for a pow() function all I got was source code that called the pow() function of whatever library, rather than the declaration (or implementation) of the pow() function.
for a pow() function" "implements the pow
function", doesn't it? 
>Why is that a different ball game?
Raising one number to a another number is defined as repeated multiplucation. For instance 5 raised to 2 is equal to 5 x 5; and 5 raised to 3 is 5 x 5 x 5. Unfortunately this same rule does not apply when working with decimals. For instance how do you define 5 raised to 0.25. There are two ways (as far as I know) if you wan't to know how check out DR.Math's website. 

>Why is that a different ball game?
Raising one number to a another number is defined as repeated multiplucation. For instance 5 raised to 2 is equal to 5 x 5; and 5 raised to 3 is 5 x 5 x 5. Unfortunately this same rule does not apply when working with decimals. For instance how do you define 5 raised to 0.25. There are two ways (as far as I know) if you wan't to know how check out DR.Math's website.
I miss read your post. I thought you meant 5.23 to the power of 2.
That is interesting, I have really never thought about how that is calculated.
Ali