aboutsummaryrefslogtreecommitdiff
path: root/src/input/table.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/table.input.pamphlet
downloadopen-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz
Initial population.
Diffstat (limited to 'src/input/table.input.pamphlet')
-rw-r--r--src/input/table.input.pamphlet40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/input/table.input.pamphlet b/src/input/table.input.pamphlet
new file mode 100644
index 00000000..34b6e39e
--- /dev/null
+++ b/src/input/table.input.pamphlet
@@ -0,0 +1,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}