Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
[ $ "bigrat.qky" loadfile ] now!
|
||||
|
||||
[ say "Number of trials: "
|
||||
dup echo cr
|
||||
0 ( heads count )
|
||||
0 ( sleeps count )
|
||||
rot times
|
||||
[ 1+
|
||||
2 random if
|
||||
[ 1+ dip 1+ ] ]
|
||||
say "Data: heads count: "
|
||||
over echo cr
|
||||
say " sleeps count: "
|
||||
dup echo cr
|
||||
say "Credence of heads: "
|
||||
2dup 20 point$ echo$ cr
|
||||
say " or approximately: "
|
||||
10 round vulgar$ echo$ cr ] is trials ( n --> n/d )
|
||||
|
||||
1000000 trials
|
||||
Loading…
Add table
Add a link
Reference in a new issue