aboutsummaryrefslogtreecommitdiff
path: root/src/input/pascal1.input.pamphlet
blob: bdbf3084df7ae512c036070c24e2a584ae38ae58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input pascal1.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)
pr(n) == [p(i,n) for i in 1..n]
l := [center blankSeparate [p(i,n)::OUTFORM for i in 1..n] for n in 1..10] ;
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}