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

« back to all changes in this revision

Viewing changes to test/ex2.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 #2
 
2
# XXX with some performance improvements, this should work in the same time 
 
3
# without the sort
 
4
[Expression]
 
5
 
 
6
let c=sort 5#d10 in (count >7 c)-(count ==1 c)
 
7
 
 
8
[Result]
 
9
 -5     0.000010
 
10
 -4     0.000300
 
11
 -3     0.003750
 
12
 -2     0.025200
 
13
 -1     0.098100
 
14
  0     0.223560
 
15
  1     0.294300
 
16
  2     0.226800
 
17
  3     0.101250
 
18
  4     0.024300
 
19
  5     0.002430
 
20