summaryrefslogtreecommitdiff
path: root/fib.awk
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2026-04-10 23:46:12 -0700
committerwukong <wukong@longaeva>2026-04-10 23:46:12 -0700
commit4c4eb1bd8f003b3b57707badd2dd089ed193a896 (patch)
tree15b62907fffd70c46a9b4369df93ab33c6aa88ac /fib.awk
parente7d1781578e846a7b1d634cd43c8fab00a67b883 (diff)
renamed fir window generators;
minor edits to whitespace and comments for more consistent style;
Diffstat (limited to 'fib.awk')
-rw-r--r--fib.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/fib.awk b/fib.awk
index 7baef76..01cb8ce 100644
--- a/fib.awk
+++ b/fib.awk
@@ -1,6 +1,9 @@
#!/usr/bin/awk -f
### fib.awk
+# print nth Fibonacci number, based on R. Hamming's solution to a diff eqn
+# form of the sequence
+
BEGIN {
ARGV[1] ? n = ARGV[1] : n = 0