hey Raj, here is the download link
Hey did you get the information from that downloadable link??
hey Raj, thanks for helping me with the question that I have been having problems with, just wondering if you have a solution.
Hello Raj, ya for sure.
- imagine you have a coordinate system with x=0..1 and y=0..1 (square) - r=1 (radius) - we consider a first quadrant of the coordinate system (see figure in your task) - the table shows different N (N throws of darts) - you need a loop with n-runs - each run calculates two random numbers x,y in the intervall 0..r (in our case 0..1,because r = 1) - then you have to check, if the point P(x,y) is located in the area of the circle - if yes -> increase a variable ("hit"-variable) - x^2 + y^2 < 1 -> point is located in the area of the circle with radius 1 - the area of the circle = a(N) = 4 * (hit-variable/N) - with radius of 1 you have probabilistic algorithm for the determination of pi - all details are without guarantee
Hope that helps, i will be on the computer all day so if you have any questions, just fire me a message. Thanks
Hello Raj, when i try to open the link it is not working.
I use a compiler called Xcode for Mac but any compiler should work.
Hello Raj, one last thing, when i go to test the code and enter in the values for N above, , 10000,(NNN) NNN-NNNN(NNN) NNN-NNNN it doesn't even calculate it only calculates for 100.
okay thanks for your help.
Hey Raj, one last question, in general how accurate do you think the Monte Carlo Integration is ?