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
Simplify the expression:<br> 7–3p+4p
trapecia [35]

Answer:

7 + p

Step-by-step explanation:

Solve:

7 - 3p + 4p

Simplify using like terms

Wrote problem using addition

7 + ( -3p + 4p)

7 + 1p or 7 + p

If my answer is incorrect, pls correct me!

If you like my answer and explanation, mark me as brainliest!

-Chetan K

6 0
3 years ago
Read 2 more answers
Ok So I an taking algebra 1 and this question is really confusing me.
V125BC [204]
You use the arithmetic sequence formula and input the information given to you.
tn = a + (n-1)d
t(56) is what your looking for so don't worry about the tn.
a is your first term,
a = 15.
n is the position of the term you are looking for, n = 56.
And d is the common difference, you find this by taking t2 and subtracting t1. t2=18 and t1=15.
d = 18 - 15 = 3
Inputting it all into the formula you get,
t(56) = 15 + (56-1)(3)
term 56 = 180.
You use this formula to find any term in a sequence provided you are given enough info. You can also manipulate it if you are asked to find something else like the first term(a), common difference(d) or term position(n). It just depends on what the question is asking and what information you are given. :)
Hope this helps!

7 0
3 years ago
Rose hiked at a constant rate of 13.3 miles per day for 7 days. Estimate the number of miles that Rose hiked during that time by
WARRIOR [948]
I think the answer is A 
6 0
3 years ago
Read 2 more answers
Find (f+g)(x) when f(x)=3/x+5 and g(x)=2/x
olga_2 [115]
What does that 3/x and 2/x mean? 2x and 3x or x^2 and x^3?
8 0
3 years ago
 m∠A = 42 and m∠C = 57. Find m∠B.<br>A. 81<br><br> B. 99<br><br> C. 132<br><br> D. 147
faltersainse [42]
A.
because the total distance of every triangle 180. Add the two other angles so 42+ 57 =99. Then you have to subtract those two combined angles to find the missing one from the total distance, which is 180. 180-99=81. the answer is A. 81
5 0
3 years ago
Other questions:
  • Why help me!!!!!!!!!!
    7·1 answer
  • A boat traveled 27 miles in 2 hours. At this, how many miles will the boat travel in 1/2 hour?
    8·1 answer
  • What number should be placed in the box to help complete the division calculation? (1 point) Long division setup showing an inco
    15·1 answer
  • Help with #10 please
    8·1 answer
  • The diagram shows two straight lines. both lines intersect at point A.
    9·1 answer
  • Erin travels north and south from Main Station. The distance, in km, of the train from Main Station is
    15·1 answer
  • What is the solution of the equation 6x-3=-51
    15·1 answer
  • 324 x 46 first partial product
    12·1 answer
  • Show the steps to solve the system of equation. x-2y+3z=-4 , 3x+y-z=0 , 2x+3y-5z=1
    11·1 answer
  • Help me please with my question.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!