Answer & Explanation:homework3.pdf i need this within 12 hours.$15-$25 is mu budget.
homework3.pdf
Unformatted Attachment Preview
EGEN 102
Introduction to Engineering Computations and Applications
Spring 2016
Homework #3
Tuesday, February 9
You have been hired by the secretive -society to analyze a new strategy for calculating the value of
through the development of a Python program. Here is the basic format of the strategy provided to you
by the -society. Begin by recognizing that the area of a unit square (height = 1.0, width = 1.0) is 1.0 and
the area of a quarter circle, which lies entirely within the unit square is /4. Now imagine that we
choose a random point ( , ) within the unit square. The probability of that random point being within
4
the quarter unit circle is ≈ 79% because 79% of the area of the unit square is covered by the quarter
unit circle! Now, if we choose ‘many’ random points, we can estimate the value of because 4 ×
( ℎ ) = . Hence, we just need to select ‘many’ or random points (i.e., a
point is two random floating point numbers between 0-1.0, see numpy.random.random()), then loop
through the points and check to see if each point is inside the quarter unit circle (i.e., is � 2 + 2 <
1.0), and then count the fraction of the points inside the quarter unit circle. The figure below shows
3000 random points on the unit square – the red points are inside the quarter unit circle and the blue
points are outside.
You should write a memo to the -society that summarizes your analysis of the feasibility of this
algorithm. The report should include a figure, which may be generated using Excel or matplotlib, that
shows the accuracy of the proposed strategy on the y-axis (accuracy = | − |) versus the
number of random points used on the x-axis. The Python program should gain accuracy with more
points. The head of the -society casually mentioned that you should try, “maybe 100, or 1000, or
10,000 random points” to see how the number of points impacts the accuracy. You consider possibly
trying one or two different numbers of random points beyond those three values. You have also been
reminded to include your Python code in the appendix of the memo/report.
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more