aboutsummaryrefslogtreecommitdiff
path: root/src/input/assign.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/assign.input.pamphlet
downloadopen-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz
Initial population.
Diffstat (limited to 'src/input/assign.input.pamphlet')
-rw-r--r--src/input/assign.input.pamphlet39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/input/assign.input.pamphlet b/src/input/assign.input.pamphlet
new file mode 100644
index 00000000..58b47f31
--- /dev/null
+++ b/src/input/assign.input.pamphlet
@@ -0,0 +1,39 @@
+\documentclass{article}
+\usepackage{axiom}
+\begin{document}
+\title{\$SPAD/src/input assign.input}
+\author{The Axiom Team}
+\maketitle
+\begin{abstract}
+\end{abstract}
+\eject
+\tableofcontents
+\eject
+\section{License}
+<<license>>=
+--Copyright The Numerical Algorithms Group Limited 1991.
+@
+<<*>>=
+<<license>>
+
+-- This file shows the difference between assignments and rewrite
+-- rules.
+
+a := 1
+b := a -- the value of b is now 1
+b -- see, told you
+a := 2 -- what is the value of b?
+b -- it is the value it had AT ASSIGNMENT
+
+c == 1 -- c is a rule
+c -- it will evaluate to 1
+d == c -- d is a rule that will evaluate to c
+d
+c == 2 -- we have changed the rule for c
+d -- and so the ultimate value computed from d will change
+@
+\eject
+\begin{thebibliography}{99}
+\bibitem{1} nothing
+\end{thebibliography}
+\end{document}