aboutsummaryrefslogtreecommitdiff
path: root/src/input/table.input.pamphlet
blob: 34b6e39e22dfc44e74230dc75d95b6fb7d61dce5 (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
34
35
36
37
38
39
40
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input TABLE.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=

-- Input generated from TableXmpPage
)clear all

t: Table(Polynomial Integer, String) := table()
setelt(t, x**2 - 1, "Easy to factor")
t(x**3 + 1) := "Harder to factor"
t(x)        := "The easiest to factor"
elt(t, x)
t.x
t x
t.(x**2 - 1)
t (x**3 + 1)
keys t
search(x, t)
search(x**2, t)
search(x**2, t) case "failed"
remove!(x**2-1, t)
remove!(x-1, t)
#t
members t
count(s: String +-> prefix?("Hard", s), t)
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}