randomlengths
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
randomlengths [2021/05/06 11:09] – created frchris | randomlengths [2021/05/06 13:38] – frchris | ||
---|---|---|---|
Line 3: | Line 3: | ||
Pick two random points in a unit square. Find the distance between them. Do this a few million times to answer the question, "What is the average length of a random segment inside a square?" | Pick two random points in a unit square. Find the distance between them. Do this a few million times to answer the question, "What is the average length of a random segment inside a square?" | ||
- | + | Helpful formula: | |
+ | {{:: | ||
====== Random Chords ====== | ====== Random Chords ====== | ||
Pick two points on a unit circle. Find the length of the cord. Do this a few million times to answer the question, "What is the average length of the chord?" | Pick two points on a unit circle. Find the length of the cord. Do this a few million times to answer the question, "What is the average length of the chord?" | ||
+ | |||
+ | ==== Hint about getting random points on unit a circle: ==== | ||
+ | |||
+ | Get a random number from 0 to '' | ||
+ | {{:: | ||
+ | |||
+ | {{ :: | ||
randomlengths.txt · Last modified: 2021/05/06 13:39 by frchris