Tuesday, March 18, 2014

C code - Monte-Carlo crude integration

______________________________________________________________________
SAMPLE OUTPUTS:

Enter number of samples: 100
Integral value is 0.927600

 Enter number of samples: 1000
Integral value is 0.987179 


 Enter number of samples: 10000
Integral value is 0.995588

No comments:

Post a Comment