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
How to break down 4/5 + 13/15 = 1 2/3
nalin [4]

Answer:

Step-by-step explanation:

The left hand side of the equation contains proper fractions while the right hand side of the equation contains mixed fraction. The mixed fraction can be changed to improper fraction. 1 2/3 becomes 5/3

To breakdown the left hand side of the equation, we would take lowest common factor of 5 and 15. It is 15

Considering 4/5, if 15 divides 5,the result is 3. Multiplying 3 by 4 gives 12. So it becomes

12/15

Considering 13/15, if 15 divides 15,the result is 1, Multiplying 1 by 13 gives 13. So it becomes

13/15

The equation becomes

(12 + 13)/15 = 5/3

25/15 = 5/3

Simplifying 25/15 to its lowest terms, it becomes 5/3 so

5/3 = 5/3

6 0
3 years ago
Read 2 more answers
Simplify Which of the following is correct?
aalyn [17]

The difference between mixed numbers gives:

-5¹/₆ - (-8¹/₂) = 3¹/₃

So the correct option is the third one.

<h3 /><h3>How to get the difference between mixed numbers?</h3>

Here we want to compute the difference between two mixed numbers.

First, remember that we can rewrite those as:

-5¹/₆ = (-5 - 1/6)

-8¹/₂ = (-8 - 1/2)

Now, let's go to the difference:

-5¹/₆ - (-8¹/₂)

First you can see that there are two negative signs together, so it is equivalent to a positive sign:

-5¹/₆ - (-8¹/₂) = -5¹/₆  + 8¹/₂

Now we can replace the mixed numbers to get:

-5¹/₆  + 8¹/₂ = (-5 - 1/6) + (8 + 1/2) = (8 - 5) + (1/2 - 1/6) = (3 + 2/6) = 3 + 1/3

And that can be rewritten to:

3 + 1/3 = 3¹/₃

Which is completely simplified.

So we conclude that the correct option is the third one, counting from the top.

If you want to learn more about mixed numbers:

brainly.com/question/1746829

#SPJ1

6 0
2 years ago
Pamela is 6 years older than jiri. The sum of their ages is 74. What is jiri’s age?
schepotkina [342]

Answer:

Jiri is 34 years old.

Step-by-step explanation:

The first thing you want to do is subtract 6 from 74, since Pamela is 6 years older than jiri and their ages summarized is 74, this spans the age difference.

Next you want to divide the answer you got earlier (68, from subtracting 6 from 74) and divide it by two since there are two people. The answer is 34, Jiri is 34 years old and Pamela is 40 years old.

5 0
3 years ago
Read 2 more answers
I need some help on my exit ticket lol
Nina [5.8K]

Answer:

The area of a circle can be found using the formula A=\pi r^2

Step-by-step explanation:

8 0
3 years ago
Amanda started the week with $200 in her bank account. Then she deposited $300 she earned from a garage sale. What was the final
Doss [256]
500 dollars 300+200=500
3 0
3 years ago
Read 2 more answers
Other questions:
  • Estimate. Then find the difference 300,980 -159,000
    14·1 answer
  • 20 POINTS!!! Please Help
    9·1 answer
  • A. 0.6
    11·1 answer
  • Subtract the following numbers. 84.6 - 28.43
    14·2 answers
  • The vértices of a figure are given.
    15·1 answer
  • Chords DB and MN intersect at the center of circle MBND. Which is the measure of the minor arc DM
    9·1 answer
  • It's for geometry. Help please ​
    7·1 answer
  • Which is the simplified form of the expression 3(7/6x + 4) - 2(3/2-5/4x)<br><br><br>​
    14·1 answer
  • Mark all the relative maximum points in the graph.
    11·1 answer
  • Is the statement “ for a set of whole numbers, the longest numeral will belong to the largest number” true or false? Why?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!