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]
2 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]2 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
15x – 4y = 18<br> As a fraction?
Margaret [11]

Answer:

2(9+2y)/15 Hope this helped!!

Step-by-step explanation:

3 0
2 years ago
Which of the following equations best represents the relationship in the table?
vazorg [7]

Answer: A  y= -4x + 2

Step-by-step explanation:

y= mx + b

when x is 0, y is 2 which you make the y intercept (b) 2

going from x=0 to x=1, the y coordinate moves down 4, so the slope would be -4

:)

5 0
2 years ago
I need help with this question, please answer
dimaraw [331]
The answer is 12 a this is how to solve it:
5a+3a+14+4(a-6)+10
5a+3a+14+4a-24+10
8a+14+4a-24+10
12a+14-24+10
12a-10+10
12a
7 0
3 years ago
Look at the screenshot.....
r-ruslan [8.4K]

Answer:

the total surface area is 360 cm

Step-by-step explanation:

7 0
2 years ago
Read 2 more answers
WHICH IS A TRUE STATEMENT BASED ON THE BOX PLOTS BELOW 10 POINTS WITH PICTURE
Kay [80]

Answer: d I believe

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • the members of the boosters organization at your high school bought new balls for the school. they spent $22.00 per basketball a
    9·1 answer
  • The Brown family needs to rent a truck for their upcoming move. Express Movers will charge them $25 for the first day and $0.80
    15·1 answer
  • Question Middle School Mathematics 5 3 pts Avatar of Grace77 All three trains just arrived at the station. When will they next a
    6·1 answer
  • What is the perimeter of a quadrilateral with vertices at (1,5), (6,5),
    7·1 answer
  • Latasha bought a concert ticket. She does not remember the price of the ticket, but she remembers that she had to pay $1 in tax.
    12·1 answer
  • What is the median of the follow 6 scores ? 64 , 72, 85 , 80 , 72 , 89
    11·2 answers
  • If the measure of arc RT = 80 degrees and the measure of arc US = 40 degrees, what is the m&lt;2?
    7·1 answer
  • A bike was originally $102 and is on sale for 30% off. what is the discounted priice
    10·2 answers
  • A 5-kilogram bag of cat food costs $18.90. What is the unit price?<br><br> $<br> per kilogram
    13·2 answers
  • How to find the answer of :125% of _ is 625​
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!