I'am doing a program for calculate one mathematics expresion. And I've to use some symbol for to elevate some number to another number. How do I do that? What library I need?
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Talk to colin. Look on bloodshed.net in his software collection. I have not tried it, but I saw a while ago he had an app that does this. Maybe you can ask him nicely for source?
Kip
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-02-04
Hi,
What you need is this:
double pow (double, double), from math.h
Hola,
Lo que necesitas es incluir math.h y as poder usar pow, que da un double y necesita dos parmetros, ambos tambin double.
Ejemplo: z=x^y
double z=pow(x,y);
Suerte con tu programa!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'am doing a program for calculate one mathematics expresion. And I've to use some symbol for to elevate some number to another number. How do I do that? What library I need?
Thank you!
Talk to colin. Look on bloodshed.net in his software collection. I have not tried it, but I saw a while ago he had an app that does this. Maybe you can ask him nicely for source?
Kip
Hi,
What you need is this:
double pow (double, double), from math.h
Hola,
Lo que necesitas es incluir math.h y as poder usar pow, que da un double y necesita dos parmetros, ambos tambin double.
Ejemplo: z=x^y
double z=pow(x,y);
Suerte con tu programa!