Do u know if the ln function exists?
I 've tried the ln(y) but it didn't work...
Now as far as your program is concerned i would say
that it doesn't seem to be working
T = (float) rand()/RAND_MAX;
//ln(a) = log(a)/log(e)
printf("*************T = %f \n",T);
temp=log(1-T) - log10(1-T)/log10(e);
T=-(1/l)*temp;
I want to calculate the T=1(1/l)*ln(1-y)
Are u sure that the e must be declared as double... I think that float is much more proper....
Thx a lot
