aboutsummaryrefslogtreecommitdiff
path: root/src/input/dfloat.input.pamphlet
blob: e517a13b43b233e3d313248caf354e06949dbf6d (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
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input DFLOAT.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=

-- Input generated from DoubleFloatXmpPage
)clear all

2.71828
2.71828@DoubleFloat
2.71828 :: DoubleFloat
eApprox : DoubleFloat := 2.71828
avg : List DoubleFloat -> DoubleFloat
avg l ==
  empty? l => 0 :: DoubleFloat
  reduce(_+,l) / #l
avg []
avg [3.4,9.7,-6.8]
cos(3.1415926)$DoubleFloat
cos(3.1415926 :: DoubleFloat)
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}