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
3. Which temperature during the week is the closest to 0? Explain how you decided this using absolute value.
Katen [24]

Answer:

The closest temperature to zero during the week is -0.5 °F because it's absolute value, 0.5, is smaller than the other numbers.

The farthest temperature from zero during the week is 5 °F because it's absolute value, 5, is the highest out of all the other numbers.

Answer: The coldest temperature would be -4 °F, because it is the farthest number on the left side of zero on the number line.15-May-2020

The warmest temperature would be 5 °F, because it is the farthest number on the right side of zero on the number line.

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
In the figure below, AB=AE, AC=AD and AP is perpendicular to BE. Prove that BC=DE.
NISA [10]

Step-by-step explanation:

1) In the figure, as AB is equal to AE, ABE is an equilateral triangle.

As AP is perpendicular to BE

=> AP is the height of the triangle ABE.

In an equilateral triangle, the median and the height is the same, so that AP is also the median of the triangle.

=> P is the midpoint of BE

=> PE = PB

2) In the figure, as AC = AD, so that ACD is an equilateral triangle.

As AP is perpendicular to BE,  so that it is perpendicular to CD as well

=> AP is the height of the triangle ACD

In an equilateral triangle, the median and the height is the same, so that AP is also the median of the triangle ACD.

=> P is the midpoint of CD

=> PC = PD

We have:

+) PB = PE

+) PC = PD

=> PB - PC = PE - PD => BC = DE

5 0
3 years ago
What is the nth term to this sequence 18,16,14,12
densk [106]

What is the nth term to this sequence 18,16,14,12 ?

Answer: 4

Explanation:

1. 18

2. 16

3. 14

4. 14

5. 12

6. 10

7. 8

8. 6

9. 4

6 0
3 years ago
Read 2 more answers
What is the equation of this line?<br> y=3/2x −2<br> y=−2x+3/2<br> y=−2x+2/3<br> y=2/3x −2
podryga [215]
The answer is the last one, y = 2/3 -2
Use the rise over run strategy on linear functions such as this one
7 0
2 years ago
Given parallelogram JKLM, complete the following statements.
olganol [36]

Answer: the first 3 are 20, 5, 43. I dont know the others though

6 0
2 years ago
Other questions:
  • The original price of a motorcycle was reduced by $275.
    11·2 answers
  • A 12% discount on a tent saved melanie $75 what was the original price
    14·1 answer
  • 40 POINTS! DONT MISS OUT!
    10·1 answer
  • I have problems with this
    6·2 answers
  • Which statement is true
    9·1 answer
  • A 25% tip was paid on a 30$ meal what is the amount of the tip?
    6·2 answers
  • At Dizzy World theme park, Vera waited in line for 35 minutes and rode on a Magical Mushroom for 7 minutes. What is the percent
    8·1 answer
  • What is the slope of the line with equation y - 3= -1/2(x - 2)
    7·2 answers
  • The endpoints of a line segment are located at (–4, 7) and (6, –3). What is the length of the line segment? Round to the nearest
    13·1 answer
  • PLEASE HELP THIS Q IS ON A QUIZ ABOUT RATIO AND PROPORTION
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!