summaryrefslogtreecommitdiff
path: root/miralib/ex/fib.m
diff options
context:
space:
mode:
Diffstat (limited to 'miralib/ex/fib.m')
-rw-r--r--miralib/ex/fib.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/miralib/ex/fib.m b/miralib/ex/fib.m
new file mode 100644
index 0000000..d84d33f
--- /dev/null
+++ b/miralib/ex/fib.m
@@ -0,0 +1,4 @@
+||fib n computes the n'th fibonacci number
+||by using /count you can estimate the asymptotic limit of (fib n/time to compute fib n)
+fib n = 1, if n<=2
+ = fib(n-1) + fib(n-2), otherwise