aboutsummaryrefslogtreecommitdiff
path: root/src/input/pascal.input.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2007-08-14 05:14:52 +0000
committerdos-reis <gdr@axiomatics.org>2007-08-14 05:14:52 +0000
commitab8cc85adde879fb963c94d15675783f2cf4b183 (patch)
treec202482327f474583b750b2c45dedfc4e4312b1d /src/input/pascal.input.pamphlet
downloadopen-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz
Initial population.
Diffstat (limited to 'src/input/pascal.input.pamphlet')
-rw-r--r--src/input/pascal.input.pamphlet37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/input/pascal.input.pamphlet b/src/input/pascal.input.pamphlet
new file mode 100644
index 00000000..2b47c10d
--- /dev/null
+++ b/src/input/pascal.input.pamphlet
@@ -0,0 +1,37 @@
+\documentclass{article}
+\usepackage{axiom}
+\begin{document}
+\title{\$SPAD/src/input pascal.input}
+\author{The Axiom Team}
+\maketitle
+\begin{abstract}
+\end{abstract}
+\eject
+\tableofcontents
+\eject
+\section{License}
+<<license>>=
+--Copyright The Numerical Algorithms Group Limited 1991.
+@
+<<*>>=
+<<license>>
+
+)clear all
+-- this file shows some computations involving Pascal's triangle
+)set fun cache all
+p(m,n | m=1)==1
+p(m,n | m=n)==1
+p(i,n | 1 < i and i < n) == p(i-1,n-1) + p(i,n-1)
+p(2,3)
+pn(n) == [p(i,n) for i in 1..n]
+pn(50)
+pk n == [pn(i) for i in 1..n]
+pk 10
+-- reset
+)set fun cache 10
+@
+\eject
+\begin{thebibliography}{99}
+\bibitem{1} nothing
+\end{thebibliography}
+\end{document}