aboutsummaryrefslogtreecommitdiff
path: root/src/input/cyfactor.input.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/cyfactor.input.pamphlet')
-rw-r--r--src/input/cyfactor.input.pamphlet52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/input/cyfactor.input.pamphlet b/src/input/cyfactor.input.pamphlet
new file mode 100644
index 00000000..3d4a58ef
--- /dev/null
+++ b/src/input/cyfactor.input.pamphlet
@@ -0,0 +1,52 @@
+\documentclass{article}
+\usepackage{axiom}
+\begin{document}
+\title{\$SPAD/src/input cyfactor.input}
+\author{The Axiom Team}
+\maketitle
+\begin{abstract}
+\end{abstract}
+\eject
+\tableofcontents
+\eject
+\section{License}
+<<license>>=
+--Copyright The Numerical Algorithms Group Limited 1996.
+@
+<<*>>=
+<<license>>
+
+)cl all
+
+--Special case tests of factoring code for cyclotomic polynomials
+
+-- +/- x^n - 1 (n even)
+
+factor(x**84 - 1)
+factor(-(x**68 -1))
+
+-- +/- x^n + 1 (n odd)
+
+factor(x**99 + 1)
+factor(-(x**77 +1))
+
+-- +/- x^(2^k) + 1
+
+ind := 2**6
+factor(x**ind + 1)
+
+ind := 2**7
+factor(-(x**ind + 1))
+
+-- This takes a lot longer than it should. It will improve when the
+-- cyclotomic code improves.
+
+factor(x**84 + 1)
+D
+--cyclotomic code improves.
+@
+\eject
+\begin{thebibliography}{99}
+\bibitem{1} nothing
+\end{thebibliography}
+\end{document}