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/ffrac.input.pamphlet | |
download | open-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz |
Initial population.
Diffstat (limited to 'src/input/ffrac.input.pamphlet')
-rw-r--r-- | src/input/ffrac.input.pamphlet | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/input/ffrac.input.pamphlet b/src/input/ffrac.input.pamphlet new file mode 100644 index 00000000..346c627e --- /dev/null +++ b/src/input/ffrac.input.pamphlet @@ -0,0 +1,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} |