Summarizes your analysis of feasibility of give algorithm

Assignment Help Other Engineering
Reference no: EM132318640

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 (x, y) within the unit square. The probability of that random point being within the quarter unit circle is Π/4 ≈ 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 ×(fraction inside the circle) = Π. Hence, we just need to select ‘many' or n random points (i.e., a point is two random floating point numbers between 0-1.0, see numpy.random.random()), then loop through the n points and check to see if each point is inside the quarter unit circle (i.e., is √x2 + y2 < 1.0), and then count the fraction of the n 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 = |Π - approximation|) 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.

1023_figure.jpg

Reference no: EM132318640

Questions Cloud

How to calculate the manufacturing overhead variance : Describe how to calculate the manufacturing overhead variance, and summarize the various reasons for unfavorable variances.
What would the role of current auditors be in a firm : From a sustainability point of view, what are the risks in the CEOs of a firm emphasis on acquisitions? What would the role of current auditors be in a firm?
In what ways is that figure important to an organization : How does the valuation method an organization chooses affect the final valuation figure. In what ways is that figure important to an organization?
What is the net cash provided by operating activities : The? company's operating income during the year was $36,000. What is the net cash provided by operating activities during last year on the statement.
Summarizes your analysis of feasibility of give algorithm : EGEN 102 - Introduction to Engineering Computations and Applications - analyze a new strategy for calculating the value of ? through the development of a Python
What is the amount of expense on this operating lease : What is the amount of expense on this operating lease, should Halle Berry Corp (lessee) report for the year ended December 31, 2018?
What are three specific paths for substance use prevention : This paper is an exercise in critical thinking about prevention. Write a 500- to 750-word reaction paper on the social norms approach to alcohol and other.
Need to implement formula for WD CHQ FL and MIS-SELLING : Instructions: Need to implement formula for places in green bases on criteria. Need to have formula for WD, CHQ, FL, MIS-SELLING
Describe the roles and responsibilities of the teacher : Special education teachers are placed in the position of coaching and supervising paraeducators, often with little direction from school administration.

Reviews

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd