~ubuntu-branches/ubuntu/hardy/dicelab/hardy

« back to all changes in this revision

Viewing changes to test/ex8.test

  • Committer: Bazaar Package Importer
  • Author(s): Robert Lemmen
  • Date: 2007-12-10 17:06:15 UTC
  • Revision ID: james.westby@ubuntu.com-20071210170615-q1av8grz0vjiv397
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# example from the readme #8
 
2
[Expression]
 
3
sum(while x=3#d6 do ((count ==6 x)#d6))
 
4
 
 
5
[Result]
 
6
  3     0.004630
 
7
  4     0.013889
 
8
  5     0.027778
 
9
  6     0.046296
 
10
  7     0.069444
 
11
  8     0.083333
 
12
  9     0.090278
 
13
 10     0.090278
 
14
 11     0.083333
 
15
 12     0.069444
 
16
 13     0.062500
 
17
 14     0.055556
 
18
 15     0.049383
 
19
 16     0.043981
 
20
 17     0.039352
 
21
 18     0.030864
 
22
 19     0.025463
 
23
 20     0.020833
 
24
 21     0.017190
 
25
 22     0.014532
 
26
 23     0.012860
 
27
 24     0.009859
 
28
 25     0.007845
 
29
 26     0.006173
 
30
 27     0.004898
 
31
 28     0.004019
 
32
 29     0.003537
 
33
 30     0.002679
 
34
 31     0.002090
 
35
 32     0.001608
 
36
 33     0.001245
 
37
 34     0.001002
 
38
 35     0.000879
 
39
 36     0.000661
 
40
 37     0.000509
 
41
 38     0.000386
 
42
 39     0.000294
 
43
 40     0.000233
 
44
 41     0.000204
 
45
 42     0.000153
 
46
 43     0.000117
 
47
 44     0.000091
 
48
 45     0.000072
 
49
 46     0.000060
 
50
 47     0.000055
 
51
 48     0.000045
 
52
 49     0.000031
 
53
 50     0.000020
 
54
 51     0.000011
 
55
 52     0.000005
 
56
 53     0.000002
 
57
 54     0.000001
 
58
 55     0.000001
 
59
 56     0.000000
 
60
 57     0.000000
 
61
 58     0.000000
 
62
 59     0.000000
 
63