Hi guys, I am attempting this, but cannot put finger on what is wrong. I have done it assuming a unit circle on origin and I thus use the positive quadrant and multiply the answer by 4.
Think maybe to do with the way I have generated random numbers.
Many thanks for your ideas..
x1=rand()/(double)RAND_MAX; //insuring random numbers between 0,1
printf("volume: %f", (4.0*hit)/N);