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
Marvin used a customary unit of measure to estimate the weight of a watermelon he grew in his backyard what could the estimated
Andrej [43]

Answer:

Usually pounds (lb) .About an an average of  20 to 25 pounds (lbs)

Step-by-step explanation:

Since Marvin uses Customary units, and considering the Watermelon.

Pounds,  He could estimate based on average of 20 to 25 pounds.

He could choose another customary units, but it wouldn't be practical and unusual to say a watermelon of 160 quarters, also it would leave all the listeners without parameters.

So, definitely pounds.

3 0
3 years ago
Bobby earns $120 by shoveling 6 driveways. How much will he earn if he shovels 10 driveway
pogonyaev
120/6=20 20*10=200 
The answer is 200
5 0
3 years ago
Read 2 more answers
What is 975, 462 round to the nearest hundred thousand
podryga [215]

Answer:

it would be 1 million, ( 1,000,000 )

Step-by-step explanation:

1.) look to the right of the nine , (7)

2.) 7 is greater than five therefore rounding it up to 1,000,000

5 0
3 years ago
A square has a side length of 5 and 1/4 inches what is the area of a square
padilas [110]
Answer: 27.5625 or 27.6

Explanation:
A square has even side lengths so each side equals 5 1/4 or 5.25. So you take two sides and multiply them together. In other words, 5.25•5.25. Then you get roughly 27.6 rounded
7 0
3 years ago
What’s the slope for RS
Annette [7]

Answer: 4/2

Step-by-step explanation: Rise over run. From point S to R it goes up 4 and over 2.

6 0
3 years ago
Other questions:
  • Whats -8,24,0,9,-13,17 in order from greatest to least
    7·2 answers
  • A survey was sent to GCA students asking the question "Who is your favorite teacher?" (Just FYI - Mrs. Parker received the most
    8·1 answer
  • In a triangle ABC if angle a = 60 °,angle<br> b= 60° then find c​
    9·1 answer
  • Can someone please help
    11·1 answer
  • What is 3/8+1/8 in a single fraction
    9·2 answers
  • Create the smallest cone possible with the tool and record the values of the radius height and volume in terms of pi then scale
    6·1 answer
  • Find the coordinates of the midpoint of the segment whose endpoints are H(6, 4) and K(2, 8).
    11·2 answers
  • Please help due in 19 minutes
    10·1 answer
  • If mDEF= 117", find the value of x.<br> (12x+1) <br> (5x-3)
    7·1 answer
  • 6/3 + ( -1/6) =<br>I dont know the answer help please​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!