home *** CD-ROM | disk | FTP | other *** search
Turbo Pascal Compiled 8bit CP/M-80 COM | 1986-02-10 | 10.1 KB | 72 lines |
- Copyright (C) 1984 BORLAND Inc
- Pseudo TeleVideo 910P
- C0000
- ^#V#N#F
- s#r#q#p
- #^#V
- 9^#Vh&
- |/g}/o#
- T]=o`9y
- T9^K#
- 8/<oz
- T9^K#
- oGOW_g
- `1pF,
- w###6
- ##N#F*
- Nw#Fw
- q#p#6
- #w#w#w
- TRUEFALSE
- N#F#s#r
- N#F#^#V
- " C}=(
- F+N+++V+^
- q#p##
- User break
- Run-time
- error
- , PC=
- Program aborted
- CThis program is a Monte Carlo computation of the following problem.
- @Given random points in the plane, what is the probability that a
- @point's nearest neighbor has as IT's nearest neighbor, the first
- point?
- 'TURN THE PRINTER ON before we continue.
- Did you turn the printer on?
- Well go turn it on
- E RESULTS of NEAREST NEIGHBOR TEST on TURBO PASCAL RNG
- /Good, now how many points per run do you want (!
- max)?
- How many runs do you want (!
- max)?
- G EACH RUN HAS *
- POINTS
- 8+)]T)
- 8+)]T)
- 8+)]T)
- 8+)]T)
- 8+)]T)
- 8+)]T)
- 8+)]T)
- 8+)]T)
- +)]T)
- 8+)]T)
- 8+)]T)
- 8+)]T)
- There were *
- commuting points out of
- the probability was therfore !
- 8+)]T)
- probability = !
- 8+)]T)
- 8+)]T)
- 8+)]T)
- The average so far is !
- The standard deviation is !
- The average so far is !
- The standard deviation is !
- 8The nearest neighbor problem may be solved analytically.
- 3The result is 6pi / ( 8pi + 3 SQRT(3) ) = 0.621505
- he nearest neighbor problem may be solved a
-