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
Write the letter below for each fraction in the correct box?​
xxTIMURxx [149]
In order from left to right:
D, C, A, B
7 0
2 years ago
Read 2 more answers
F(x)=2x^3+2x-3 g(x)=-.5[x-4] what is the y value when f(x) = g(x)?
Charra [1.4K]

Answer:

D. x = 0.5

Step-by-step explanation:

A graphing calculator is the quickest way to get to an answer here.

 f(x) = g(x) for x = 0.5

__

We can find the y-intercepts of the two functions to be ...

 f(0) = -3

 g(0) = -2

We know the x-intercept of g(x) is x=4. The x-intercept of f(x) will be a value less than 1, because f(1) = 1. (The function crosses the x-axis between x=0 where f(x) < 0 and x=1, where f(x) > 0.)

Considering these intercept points, we know the value of x for f(x)=g(x) will be between x=0 and x=1. There is only one answer choice in that interval:

 x = 0.5

5 0
3 years ago
HURRY PLEASE<br> Which term is like -4k?<br> A. -4<br> B. -2<br> C. 12k
Igoryamba

Answer:

A.-4

Step-by-step explanation:

6 0
2 years ago
The given figure is a parallelogram find the value of x and y
e-lub [12.9K]

Answer:

Step-by-step explanation:

In a parallelogram, diagonals bisect each other.

7y - 2 = 5y + 4

7y - 2 - 5y = 4

2y - 2 = 4

2y = 4 +2

2y = 6

y = 6/2

y = 3

3x +2 = 23

3x = 23 - 2

3x = 21

x = 21/3

x = 7

5 0
3 years ago
Read 2 more answers
Which property would be used to first simplify the expression 2 (x+5y+1)-4(3x-y-2)
Mariulka [41]

Answer:

Distributive

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Dear Math Helper, You write a great column, and I hope you stay around for years to come. I run a small boarding school. We are
    8·1 answer
  • What is the measurement of BC to the nearest centimeter?
    9·1 answer
  • Solve the absolute value equation for <br> |r-6|=3
    5·2 answers
  • Use the 95% rule and the fact that the summary statistics come from a distribution that is symmetric and bell-shaped to find an
    12·1 answer
  • I need this please help me
    14·1 answer
  • A particle P moves in a straight line such that, t s after leaving a point O, its velocity v ms^-1 is given by v=36t - 3t^2 for
    8·1 answer
  • 2a2 + cb; a = 5, b = 11, and c = 3
    15·1 answer
  • HELP HELP HELP HELP WOPFOPOPMPOMGOPRDAGS
    6·1 answer
  • 7/8 - 6/7. what is the answer.???
    8·1 answer
  • Rephrase verbally in equivalent only if, sufficient, necessary, contrapositive and unless form: ”if we had an FTL drive, then we
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!