Sign in to follow this  

math.h pow function isn't working!

This topic is 4733 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need a pow function that takes two inputs, double,double, and returns the answer. The <math.h> one can't do decimal or negative powers, which is what I am looking for. Can someone help me out? I would especially like optimized versions.

Share this post


Link to post
Share on other sites
Never mind. It works. I had to officially cast everything as double, since it was otherwise using the int function. I am gonna delete this thread after an hour or so. BTW: Does anyone know where I can find the actual code for pow?

Share this post


Link to post
Share on other sites
On my windows box with vs.net 2003 its under the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\crt\src dir or optionally the intel sub dir is where you can find "optimized" versions of some of the more popular methods.

Cheers
Chris

Share this post


Link to post
Share on other sites

This topic is 4733 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this