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
I dont understand these problems |×| - 1 &lt; 5 , 3x + 4 &lt;-2, 5x/7 -2=1, 9(2x+3)=10
Marta_Voda [28]
|x|-1
3 0
4 years ago
I need help on this 6th grade math problem
vivado [14]

Answer: x<17.5

Step-by-step explanation:

Subtract  from both sides: x+2.5-2.5<20-2.5

Simplify the arithmetic: x<20-2.5

Simplify the arithmetic: x<17.5

Hope it helps!

4 0
2 years ago
Read 2 more answers
PLZ HELP URGENT
Taya2010 [7]

Answer:

Larceny is a specific intent crime against possession not ownership. Exceptions that exculpate (reasonable or unreasonable): Claim of Right, ...

Step-by-step explanation:

Robbery, like theft, involves taking someone's property without the owner's consent, but it has some elements that theft doesn't require. Robbery

8 0
2 years ago
(pages 2-7)
user100 [1]

Answer:

The answer is here

Step-by-step explanation:

https://www.khanacademy.org/test-prep/praxis-math/praxis-math-lessons/gtp--praxis-math--lessons--geometry/a/gtp--praxis-math--article--congruence-and-similarity--lesson

7 0
3 years ago
I need answers for this question
Colt1911 [192]

Answer:

1. Use the distributive property to get rid of any parenthesis.

2. Combine like terms

3. Move all variables to one side

4. Inverse operations

8 0
1 year ago
Other questions:
  • A manufacturer is running an experiment using the standard (control) infant formula, and two new formulas, A and B. The goal is
    5·1 answer
  • Given that x and y are positive. If the value of x is decreased, what happens to the value of the expression? x + y xy A) decrea
    9·1 answer
  • I will give points to those who send me friend requests<br> Like me and give requests
    14·1 answer
  • [2 x 2(2 + 1)^2= please help
    12·1 answer
  • This should be easy for me but i forgot how
    12·1 answer
  • A while ago, Lindsey bought shares of stock in a high-tech firm. At that time, the selling price was $5 per share. According to
    9·1 answer
  • I need help
    7·1 answer
  • The circumference of a circle is 12.56 centimeters. What is the circle’s diameter?
    5·1 answer
  • What are the answer 1/7 of 21
    6·1 answer
  • A company finds that there is a linear relationship between the amount of money that it spends on advertising and the number of
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!