blob: 80e6514a0321c3b7d5c4f87da05cdd4e5fcd072b (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input macbug.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
\section{License}
<<license>>=
--Copyright The Numerical Algorithms Group Limited 1994.
@
<<*>>=
<<license>>
-- \xtc{
-- Macros can be parameterized and so can be used for many different
-- kinds of objects.
-- }{
macro ff(x) == x**2 + 1
-- }
-- \xtc{
-- Apply it to a number, a symbol, or an expression.
-- }{
ff z
-- }
-- \xtc{
-- Macros can also be nested, but you will get an error message if you
-- run out of space because of an infinite nesting loop.
-- }{
macro gg(x) == ff(2*x - 2/3)
-- }
-- \xtc{
-- This new macro is fine as it does not produce a loop.
-- }{
gg(1/w)
-- }
-- %
-- \xtc{
-- This however will loop since \spad{gg} is
-- defined in terms of \spad{ff}.
-- % risk not using a free g on next line
-- }{
macro ff(x) == gg(-x)
-- }
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}
|