diff options
author | dhuth <derickhuth@gmail.com> | 2014-11-21 13:35:20 -0700 |
---|---|---|
committer | dhuth <derickhuth@gmail.com> | 2014-11-21 13:35:20 -0700 |
commit | a1834b22c43c282442b0cb164767e6c877cf0e5b (patch) | |
tree | bedc5be7d1bdb8d32c1868caa496a8a1530d8d8a /omega/examples/hull.out | |
parent | ded84bb4aec7461738e7b7033d782a518e2c606b (diff) | |
parent | eb9236c5353785472ae132f27e1cfb9f1e4264a5 (diff) | |
download | chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.gz chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.bz2 chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.zip |
Merge branch 'master' into doe
Diffstat (limited to 'omega/examples/hull.out')
-rw-r--r-- | omega/examples/hull.out | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/omega/examples/hull.out b/omega/examples/hull.out new file mode 100644 index 0000000..8d53f57 --- /dev/null +++ b/omega/examples/hull.out @@ -0,0 +1,40 @@ +>>> # test new hull calculation method RectHull +>>> +>>> symbolic m,n; +>>> +>>> r1 := {[i,j]: i>=0 && j>=0 && i+j<=1}; +>>> r2 := {[i,j]: j>=0 && i<=1 && j<=i}; +>>> +>>> ConvexHull (r1 union r2); +{[i,j]: 0 <= i <= 1 && 0 <= j <= 1} +>>> RectHull (r1 union r2); +{[i,j]: 0 <= i <= 1 && 0 <= j <= 1} +>>> QuickHull (r1 union r2); +{[i,j]: 0 <= j} +>>> Hull (r1 union r2); +{[i,j]: 0 <= i <= 1 && 0 <= j <= 1} +>>> +>>> r1 := {[i]:i<=n && n>=7}; +>>> r2 := {[i]:i<=n-2 && n>=6}; +>>> +>>> ConvexHull (r1 union r2); +{[i]: i <= 3n-14, n && 6 <= n} +>>> RectHull (r1 union r2); +{[i]: i <= n && 6 <= n} +>>> QuickHull (r1 union r2); +{[i]: i <= n && 6 <= n} +>>> Hull (r1 union r2); +{[i]: i <= n, 3n-14 && 6 <= n} +>>> +>>> r1 := {[i,j]:0<=i,j<=2}; +>>> r2 := {[i,j]:0<=i && 1<=j && i+j<=4}; +>>> +>>> ConvexHull (r1 union r2); +{[i,j]: 0 <= i <= j+2, -j+4 && 0 <= j} +>>> RectHull (r1 union r2); +{[i,j]: 0 <= i <= -j+4, 3 && 0 <= j} +>>> QuickHull (r1 union r2); +{[i,j]: 0 <= i && 0 <= j} +>>> Hull (r1 union r2); +{[i,j]: 0 <= i <= -j+4, j+2 && 0 <= j} + |