summaryrefslogtreecommitdiff
path: root/omegalib/examples/old_test/sample1.oc-rt
diff options
context:
space:
mode:
Diffstat (limited to 'omegalib/examples/old_test/sample1.oc-rt')
-rw-r--r--omegalib/examples/old_test/sample1.oc-rt39
1 files changed, 39 insertions, 0 deletions
diff --git a/omegalib/examples/old_test/sample1.oc-rt b/omegalib/examples/old_test/sample1.oc-rt
new file mode 100644
index 0000000..bb19b15
--- /dev/null
+++ b/omegalib/examples/old_test/sample1.oc-rt
@@ -0,0 +1,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] }
+
+#
+#
+#
+#