summaryrefslogtreecommitdiff
path: root/impl/systems/generate-fib.py
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-06-15 15:48:16 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-06-15 15:48:16 +1000
commita61d8b829afab13593e254fc69e260b6346939dc (patch)
tree80718961a7242840db56eec82c792d7ca07eb654 /impl/systems/generate-fib.py
parente00d7e6486739221f4d5adea1583743d3e23acfd (diff)
Parameterise fixpoint and strategy improvement
(command-line arguments specify which to use) Also: - Fix up Complete<T> to work comparing `inf` to 1 (stupid bug) - Clean up the systems/ folder a bit - Change the printed output to differentiate variables and constants (!v/!c, respectively) - Perform a slight optimisation to the strategy-iteration process
Diffstat (limited to 'impl/systems/generate-fib.py')
-rw-r--r--impl/systems/generate-fib.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/impl/systems/generate-fib.py b/impl/systems/generate-fib.py
new file mode 100644
index 0000000..0263fff
--- /dev/null
+++ b/impl/systems/generate-fib.py
@@ -0,0 +1,6 @@
+
+print 'x0 = 0'
+print 'x1 = 1'
+for i in xrange(10000):
+ #print 'x' + str(i+2) + " = x" + str(i) + " + x" + str(i+1)
+ print 'x%d = x%d + x%d' % (i+2, i, i+1)