summaryrefslogtreecommitdiff
path: root/omega/examples/old_test/sample1.oc-rt
blob: bb19b15e7cb02436ca429d0fd7d0e5724d0d021b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Omega Calculator v1.2 (based on Omega Library 1.2, August, 2000):
# example { [i] -> [j] : 1 <= i < j <= 20 };

{[19] -> [20] }

# 
# 
# example { [i,j] -> [i+1,j+1] : 1 <= i <= 9 && 5 <= j <= 25 };

{[1,5] -> [2,6] }

# 
# 
# example (inverse { [i] -> [i+1] : 1 <= i <= 9 });

{[2] -> [1] }

# 
# 
# example (domain { [i] -> [i+1] : 1 <= i <= 9 });

{[1]}

# 
# 
# example (range { [i] -> [i+1] : 1 <= i <= 9 });

{[2]}

# 
# 
# example ({[i] -> [i+1] : 1 <= i <= 9 } compose { [i] -> [i+1] : 1 <= i <= 9 });

{[1] -> [3] }

# 
# 
# 
#