Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need a Python script Exercise 1 : Monte - Carlo integration The equation of the circle with unit radius centered around ( 0 ,
I need a Python script
Exercise : MonteCarlo integration
The equation of the circle with unit radius centered around is given by
Exploiting the symmetry of the circle, one can define the area under the positive quadrant
to be
Using the Monte Carlo technique evaluate the integral to find the value of
a Generate random values for distributed uniformly between and
Use these values to calculate the average function value :: and estimate
b Repeat the exercise a times to evaluate the uncertainty due to the
limited sample size used in the estimation of
c For different integration samples sizes ie;dots, which are repeated
times, evaluate the mean of the absolute difference between estimated
and exact result nppi ie Make a loglog plot of Vs
and show that the data can be fit to a straight line of slope
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started