blob: 58b47f31354a0e5bb34e1fe1523465c0f4a94d7c (
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
|
\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}
|