diff options
author | Carlo Zancanaro <carlo@carlo-laptop> | 2012-05-29 22:42:25 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@carlo-laptop> | 2012-05-29 22:42:25 +1000 |
commit | e043ee06a51a8d8c68f8cb0984d4f7bd8915bea8 (patch) | |
tree | cc8fd32426518808facb2efb496667b92cd22754 /impl/systems/size-ten | |
parent | f09ce60d45d5524e36d07e76814b6e0cbc554288 (diff) |
First attempt a range parser - likely not correct.
Diffstat (limited to 'impl/systems/size-ten')
-rw-r--r-- | impl/systems/size-ten | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/impl/systems/size-ten b/impl/systems/size-ten index 71ee74a..9ef3135 100644 --- a/impl/systems/size-ten +++ b/impl/systems/size-ten @@ -1,3 +1,3 @@ -x1 = max(0, min(x1-1, x2)) -x2 = max(0, 5+x1, x1) -x3 = max(0, 1+x3, 0+x1) +x1 = max([0,0], min(x1-[1,1], x2)) +x2 = max([0,0], [5,5]+x1, x1) +x3 = max([0,0], [1,1]+x3, [0,0]+x1) |