aboutsummaryrefslogtreecommitdiff
path: root/src/input/f02fjf.input.pamphlet
blob: 39adade5099f33bd6aa8254aaf25e58ae9cbe70d (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
64
65
66
67
68
69
70
71
72
73
74
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input f02fjf.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
\section{License}
<<license>>=
--Copyright The Numerical Algorithms Group Limited 1994.
@
<<*>>=
<<license>>
)cl all
showArrayValues true
showScalarValues true

n : Integer := 16;
k : Integer := 6
tol : DoubleFloat := 0.0001
novecs : Integer := 0
nrx : Integer := n
lwork : Integer := 86
lrwork : Integer := 1;
liwork : Integer := 1;
noits : Integer := 1000
m : Integer := 4;
x :Matrix SF:=new(nrx,k,0.0);
ifail : Integer := -1
a :Matrix FRAC INT:= new(n,n,0);
a(1,1) := 1;
a(1,2) := -1/4;
a(1,5) := -1/4;
for i in 2..4 repeat
  a(i,i-1) := -1/4
  a(i,i) := 1
  a(i,i+1) := -1/4 
  a(i,i+4) := -1/4
for i in 5..n-4 repeat
  a(i,i-4) := -1/4
  a(i,i-1) := -1/4
  a(i,i) :=   1
  a(i,i+1) := -1/4
  a(i,i+4) := -1/4
for i in n-3..n-1 repeat
  a(i,i-4) := -1/4
  a(i,i-1) := -1/4
  a(i,i) :=   1
  a(i,i+1) := -1/4
a(16,16) := 1;
a(16,15) := -1/4;
a(16,12) := -1/4;
b:Matrix FRAC INT:= new(n,n,0);
b(1,1) := 1
b(1,2) := -1/2
for i in 2..n-1 repeat
  b(i,i-1) := -1/2
  b(i,i) := 1
  b(i,i+1) := -1/2
b(16,15) := -1/2
b(16,16) := 1
c : Matrix MachineFloat := (inverse (a))*b;
bb  := b :: Matrix MachineFloat
result:=f02fjf(n,k,tol,novecs,nrx,lwork,lrwork,liwork,m,noits,x,ifail,bb :: ASP27('DOT),c :: ASP28('IMAGE))
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}