Uhhh, open it up and look at it, in my case, the file is down in my c:\dev-cpp\include. In my case also, Dev opens the header file for me to look at if I double click it...
In it, you will find the following (Dev4.9.7.6,gcc-3.2)
double pow (double, double);
Don't forget, you may have to link the math library in on compile, but thats easy, all you have to do is add:
-lm
to your compiler commands...
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried using the pow statement to use the exponent in this formula
payment = principal *(rate/(1-pow(rate+1,-term)));
with -term being the exponent. I was just wondering how to find out exactly what the math.h file covers?
Uhhh, open it up and look at it, in my case, the file is down in my c:\dev-cpp\include. In my case also, Dev opens the header file for me to look at if I double click it...
In it, you will find the following (Dev4.9.7.6,gcc-3.2)
double pow (double, double);
Don't forget, you may have to link the math library in on compile, but thats easy, all you have to do is add:
-lm
to your compiler commands...
Wayne