Im writting a math program to calculate the area below a curve. Everything seems to be fine only that in the following funcion:
float y(float x) {
float y;
/* 1
y = --------
exp(x^2)
*/
/* y = 1 / fabs(exp(x*x));*/
y= 1/fabs(exp(x*x));
return y;
}
I get this error when I compile it (gcc 2.95.3) on linux 2.4.18:
/tmp/ccvlcwTt.o: In function `y':
/tmp/ccvlcwTt.o(.text+0x5e): undefined reference to `exp'
Thanks for your help