1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
anastassius [24]
3 years ago
13

Generate a process that would generate random numbers between –1 and 1 for x and y positions of 10000 points and count how many

points fall with the circle, then determine an estimated version of π. (see below to generate floating point random numbers. this generation is not needed to describe the process, but to implement the process)
Mathematics
1 answer:
goblinko [34]3 years ago
5 0
<span>#!/usr/bin/env python

import random
import math
count_inside = 0
     for count in range(0, 10000): d = math.hypot(random.random(), random.random())
    if d < 1: count_inside += 1
count += 1
print 4.0 * count_inside / count</span>
You might be interested in
How can you can find the rate in pounds per hour?
Aliun [14]

Answer: by multiply until you get your sum

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
6x - 8 ≤ 184 <br> i need answer for test corrections
jekas [21]
I hope this helps.....

Explanation:
I took this in 9th grade so I know how to do this kind of stuff

5 0
3 years ago
-3(7+5)<br> What is the value of<br> 22<br> 9(2)?
hodyreva [135]

Answer:

I used the picture to answer the question and the answer was -4

5 0
3 years ago
PLEASE HELP 25 POINTS
MrRissso [65]

The lcd would be 10x^3y^3

3 0
3 years ago
Read 2 more answers
30
Anna [14]

Answer:

15% if I remember correctly

6 0
3 years ago
Other questions:
  • -k=7<br>what is k equal to
    8·2 answers
  • A chef has 1534lb of beans. She packs them in freezer bags that weigh 214lb each.
    6·1 answer
  • Yolanda closed on a 20 year home loan for $83,000. she chooses to buy only 1 point at closing. by buying a point at her closing,
    10·2 answers
  • Help me plz
    11·2 answers
  • A restaurant manager can spend at most $600 a day for operating costs and payroll. It costs $100 each day to operate the bank an
    5·1 answer
  • Heeelllllp meeeeeee plzzzzzzzzzzz and explain ​
    15·1 answer
  • Which set of numbers could represent the lengths of the sides of a right triangle?
    8·1 answer
  • The width of a piece of paper was 1/2. The area of the paper was 9/16. What was the length of the paper?
    6·1 answer
  • 29. The cost of renting a bike is $10 to take the bike and $4 for every hour it spends in our possession. The final sum we paid
    13·2 answers
  • Help with math pls !!!! lots of point
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!