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
What is 1/8% of 1000
Luden [163]

Answer:

12500

Step-by-step explanation:

1/8%x1000=12500

8 0
3 years ago
Read 2 more answers
Last week Macy ran 4 times as many miles as Jackson. They ran a total of 20 miles. How many miles did Macy run? how many morr mi
WITCHER [35]
Macy 5 miles because she ran 4 times more than Jackson in relation to Jackson ran 5 mile, this problem can oftenly be seen as
j = 20 \div 4
which would end up in the answer being 5 which is the right answer while someone else can see it as
j = 20 - 4
which would equal 16 which is incorrect because the problem didn't say that Jackson ran one mile nor 4 miles which would be 4*4 or 16 when the correct answer is 20/4=5 because 4*5=20
5 0
3 years ago
Edward is driving a car on the highway. He drives for 28.5 miles in 3/8 of an hour. At this rate, how much distance can he cover
kari74 [83]

Answer:

76 Miles.

Step-by-step explanation:

28.5/3=9.5

9.5(8)=76

5 0
3 years ago
Mac had a bag of 5 orange marbles, 8 yellow marbles, and 12 white marbles. How many orange marble draws are expected if 800 draw
Alika [10]

Answer:

100

Step-by-step explanation:

100/8=12.5

12.5% of 800=100

4 0
3 years ago
Read 2 more answers
What is r = 13 mm. I’m in desperate need of help.
statuscvo [17]

Answer:

r is radius and the mm are milimeters

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • Heather and Joel are going on a camping trip and are trying to determine how much water to buy and bring with them. A. They deci
    6·1 answer
  • Please help!!!!!
    7·1 answer
  • 61,403,921,575 in word form
    12·1 answer
  • Write the expression (x4)8 in simplest form.
    10·1 answer
  • Solve the system algebraically. y = 3 - x 3x + 4y = 1 What is the value of x? -11 17/2 11
    7·2 answers
  • A principal is ordering pizzas for a school pizza party. He knows that 9 pizzas will
    13·1 answer
  • Hey guys I need help with this exercise!!! PLZZZ HELP!
    8·1 answer
  • What is the area of a square if the length is 4x-3
    7·2 answers
  • 6x-8=2x-32 step by step plz
    11·2 answers
  • Given: AD∥BC and AB∥CD<br> Prove: AD≅BC and AB≅CD
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!