Let's say I have the following module:
module Simple-Mod;
#| Calculate the nth fibonacci number.
multi fib( 0 ) { 1 }
multi fib( 1 ) { 1 }
multi fib( Int $n where * > 1 ) {
fib($n - 2 ) + fib($n - 1);
% Resources: | |
% http://www-math.mit.edu/~psh/exam/examdoc.pdf | |
% https://www.math.uni-bielefeld.de/~rost/amslatex/doc/amsthdoc.pdf | |
\documentclass[addpoints,answers,12pt]{exam} % exam class with 12 point type | |
\usepackage[T1]{fontenc} % replace default font encoding (OT1) | |
\usepackage{tgschola} % font used in the Book of Proof | |
\usepackage{amsmath,amsthm,amssymb,amsfonts} % packages for mathematical typesetting | |
\usepackage{pdfpages} % include pdf pages with \includepdf{dir/of/page.pdf} | |
\usepackage[makeroom]{cancel} % display expressions as cancelled |
Let's say I have the following module:
module Simple-Mod;
#| Calculate the nth fibonacci number.
multi fib( 0 ) { 1 }
multi fib( 1 ) { 1 }
multi fib( Int $n where * > 1 ) {
fib($n - 2 ) + fib($n - 1);