From ab8cc85adde879fb963c94d15675783f2cf4b183 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Tue, 14 Aug 2007 05:14:52 +0000 Subject: Initial population. --- src/input/array1.input.pamphlet | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/input/array1.input.pamphlet (limited to 'src/input/array1.input.pamphlet') diff --git a/src/input/array1.input.pamphlet b/src/input/array1.input.pamphlet new file mode 100644 index 00000000..d0c494b1 --- /dev/null +++ b/src/input/array1.input.pamphlet @@ -0,0 +1,31 @@ +\documentclass{article} +\usepackage{axiom} +\begin{document} +\title{\$SPAD/src/input ARRAY1.input} +\author{The Axiom Team} +\maketitle +\begin{abstract} +\end{abstract} +\eject +\tableofcontents +\eject +<<*>>= + +-- Input generated from OneDimensionalArrayXmpPage +)clear all + +oneDimensionalArray [i**2 for i in 1..10] +a : ARRAY1 INT := new(10,0) +for i in 1..10 repeat a.i := i; a +map!(i +-> i ** 2,a); a +reverse! a +swap!(a,4,5); a +sort! a +b := a(6..10) +copyInto!(a,b,1) +@ +\eject +\begin{thebibliography}{99} +\bibitem{1} nothing +\end{thebibliography} +\end{document} -- cgit v1.2.3