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

  What the primary difference between eeprom and flash eeprom

a what the primary difference between eeprom and flash eeprom in terms of how they can be used?b approximately how many

  Life cycle of public health partnerships

Explain the life cycle of public health partnerships. Why are collaborative partnerships important? What reasons or issues lead to the termination of partnerships?

  Using replacement analysis decide when the company should

a large electronics manufacturing company is considering starting a new production line to replace an existing old

  Design a low-pass filter of order

Write a suitable matlab program with comments to indicate the logic used and generate the discrete plot - Design a low-pass filter of order

  Design a lag compensator

Design a lag compensator D(s)=K(Ts+1)/( αTs+1), α

  Draw the diagram of a half adder circuit using nand gates

Draw the diagram of a Half Adder (HA) circuit using NAND gates only and simulate its operation using the Quartus software by generating waveforms.

  Show how the sum-product algorithm can be used

Consider a tree-structured factor graph, in which a given subset of the variable nodes form a connected subgraph.

  Why are line losses for hvdc cables

Why are line losses for HVDC cables lower than those of ac cables with similar capacity - What are the characteristics of those locations that prompted the installation of back-to-back HVDC links?

  Draw all the roads using mx road or open road

300982 Transportation Engineering Assignment. Draw all the roads using MX Road or Open Road and show carriage way widths and verges on either sides

  Draw a suitable circuit consisting of them voltage source

We have a load resistance of 50Ω that we wish to supply with 5V. A 12.6-V voltage source and resistors of any value needed are available. Draw a suitable circuit consisting of them voltage source, the load, and one additional resistor. Specify the..

  Compute the bending stiffness of a cantilever i beam

Compute the bending stiffness of a cantilever I-beam (given Figure) of length L = 30 cm, subjected to a tip-shear force Vz = 445 N. The dimensions of the beam are: h = 2.5 cm, b = h/2, t = h/16.

  Connected to the same exit duct and mix

Three air flows all at 200 kPa are connected to the same exit duct and mix without external heat transfer. Flow one has 1 kg/s at 400 K, flow two has 3 kg/s at 290 K and flow three has 2 kg/s at 700 K. Neglect kinetic energies and find the volume ..

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