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

)compile hilbert.as

monomial l == (l::Vector SingleInteger) pretend Monomial
mon1 := monomial [4,0,0,0]
mon2:= monomial [3,3,0,0]
mon3 := monomial [3,2,1,0]
mon4 := monomial[3,1,2,0]
mon5 := monomial[0,2,0,1]
mon6 := monomial[0,1,0,5]
l := [mon1, mon2, mon3, mon4, mon5, mon6]
Hilbert l
idA := varMonomsPower(6,5)
#idA
Hilbert idA
idB := varMonomsPower(6,6)
#idB
Hilbert idB
idC := varMonomsPower(12,3)
#idC
Hilbert idC
idD:=[monomial[2,0,0,0],monomial[1,1,0,0],monomial[1,0,1,0],monomial[1,0,0,1],_
 monomial[0,3,0,0],monomial[0,2,1,0]]^4
#idD
Hilbert idD

@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}