Mercurial > hg > python
comparison distr_3.py @ 30:9f40651f6080
works, but not quite right for cc simulation
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Thu, 29 Jul 2021 10:21:51 +0100 |
parents | 7d6bc790b213 |
children | 1252f8100c6a |
comparison
equal
deleted
inserted
replaced
29:7d6bc790b213 | 30:9f40651f6080 |
---|---|
27 f[res]+=1 | 27 f[res]+=1 |
28 whole[res]+=1 | 28 whole[res]+=1 |
29 return f | 29 return f |
30 | 30 |
31 segs=[fd(n,m,b) for s in range(ss)] | 31 segs=[fd(n,m,b) for s in range(ss)] |
32 for s in segs: | |
33 print("%6.3g %6.3g"%(s.mean(), s.sd())) | |
32 | 34 |
33 whole.bell() | 35 whole.bell(block=False) |
36 segs[4].bell() | |
34 | 37 |
35 | 38 |