Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
*Optional problem for extra credit:* \[50 pts\]
The fibonacci function fib is defined by the following rules (in Scheme notation):

Code Block
(fib 0) = 0    ;; formerly (fib 0) = 1; revised to match the prevailing mathematical conventions for defining fib
(fib 1) = 1
(fib (+ n 1)) = (+ (fib n) (fib (- n 1)))

...