blob: 346c627e0dbe325ad4364489ea1784211f69e4d6 (
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
55
56
57
58
59
60
61
62
63
|
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input ffrac.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
\section{License}
<<license>>=
--Copyright The Numerical Algorithms Group Limited 1994.
@
<<*>>=
<<license>>
)lib ffrac
f1 : FormalFraction Integer
f1 := 6/3
-- 6
-- -
-- 3
f2 := (3.6/2.4)$FormalFraction Float
-- 3.6
-- ---
-- 2.4
numer f1
-- 6
denom f2
-- 2.4
f1 :: FRAC INT
-- 2
% :: FormalFraction Integer
-- 2
-- -
-- 1
f2 :: Float
-- 1.5
output "End of tests"
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}
|