aboutsummaryrefslogtreecommitdiff
path: root/src/input/roots.input.pamphlet
blob: 16889aa0ca80edc0b6212f577ad492567fde0810 (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
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input roots.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
\section{License}
<<license>>=
--Copyright The Numerical Algorithms Group Limited 1991.
@
<<*>>=
<<license>>

)cl completely
-- This will compute all the roots of x**4 + 1 = 0
lr:=rootsOf(x**4+1,x)
-- the new expressions satisfy
definingPolynomial %x0
definingPolynomial %x1
--the product of the first three is a root
lr.1 * lr.2 * lr.3
%**4
-- so is the sum
lr.1 + lr.2 + lr.3
%**4
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}