aboutsummaryrefslogtreecommitdiff
path: root/src/input/matrix1.input.pamphlet
blob: 1aa2d81f5d1438e1bf750915fc6b15ccef5c3481 (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
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input MATRIX.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=

-- Input generated from MatrixXmpPage
)clear all


-- Input generated from ugxMatrixCreatePage
)clear all

m : Matrix(Integer) := new(3,3,0)
setelt(m,2,3,5)
m(1,2) := 10
m
matrix [[1,2,3,4],[0,9,8,7]]
dm := diagonalMatrix [1,x**2,x**3,x**4,x**5]
setRow!(dm,5,vector [1,1,1,1,1])
setColumn!(dm,2,vector [y,y,y,y,y])
cdm := copy(dm)
setelt(dm,4,1,1-x**7)
[dm,cdm]
subMatrix(dm,2,3,2,4)
d := diagonalMatrix [1.2,-1.3,1.4,-1.5]
e := matrix [[6.7,9.11],[-31.33,67.19]]
setsubMatrix!(d,1,2,e)
d
a := matrix [[1/2,1/3,1/4],[1/5,1/6,1/7]]
b := matrix [[3/5,3/7,3/11],[3/13,3/17,3/19]]
horizConcat(a,b)
vab := vertConcat(a,b)
transpose vab

-- Input generated from ugxMatrixOpsPage
)clear all

m := matrix [[1,2],[3,4]]
4 * m * (-5)
n := matrix([[1,0,-2],[-3,5,1]])
m * n
vec := column(n,3)
vec * m
m * vec
hilb := matrix([[1/(i + j) for i in 1..3] for j in 1..3])
inverse(hilb)
mm := matrix([[1,2,3,4], [5,6,7,8], [9,10,11,12], [13,14,15,16]])
inverse(mm)
determinant(mm)
trace(mm)
rank(mm)
nullity(mm)
nullSpace(mm)
rowEchelon(mm)
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}