diff options
author | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
commit | ab8cc85adde879fb963c94d15675783f2cf4b183 (patch) | |
tree | c202482327f474583b750b2c45dedfc4e4312b1d /src/input/macbug.input.pamphlet | |
download | open-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz |
Initial population.
Diffstat (limited to 'src/input/macbug.input.pamphlet')
-rw-r--r-- | src/input/macbug.input.pamphlet | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/input/macbug.input.pamphlet b/src/input/macbug.input.pamphlet new file mode 100644 index 00000000..80e6514a --- /dev/null +++ b/src/input/macbug.input.pamphlet @@ -0,0 +1,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} |