/usr/share/axiom-20120501/input/matrix22.input is in axiom-test 20120501-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | )set break resume
)spool matrix22.output
)set message test on
)set message auto off
)clear all
--S 1 of 8
m:SQMATRIX(2,INT) := squareMatrix matrix [[0,1],[-1,0]]
--R
--R
--R + 0 1+
--R (1) | |
--R +- 1 0+
--R Type: SquareMatrix(2,Integer)
--E 1
--S 2 of 8
determinant m
--R
--R
--R (2) 1
--R Type: PositiveInteger
--E 2
--S 3 of 8
n:SQMATRIX(2,SQMATRIX(2,INT)) :=
squareMatrix matrix [[m,m**2],[m**3,m**4]]
--R
--R
--R ++ 0 1+ +- 1 0 ++
--R || | | ||
--R |+- 1 0+ + 0 - 1+|
--R (3) | |
--R |+0 - 1+ +1 0+ |
--R || | | | |
--R ++1 0 + +0 1+ +
--R Type: SquareMatrix(2,SquareMatrix(2,Integer))
--E 3
)set mes test off
--S 4 of 8
determinant n
--R
--R There are 3 exposed and 1 unexposed library operations named
--R determinant having 1 argument(s) but none was determined to be
--R applicable. Use HyperDoc Browse, or issue
--R )display op determinant
--R to learn more about the available operations. Perhaps
--R package-calling the operation or using coercions on the arguments
--R will allow you to apply the operation.
--R
--R Cannot find a definition or applicable library operation named
--R determinant with argument type(s)
--R SquareMatrix(2,SquareMatrix(2,Integer))
--R
--R Perhaps you should use "@" to indicate the required return type,
--R or "$" to specify which version of the function you need.
--E 4
)set mes test on
--S 5 of 8
o:SQMATRIX(2,SQMATRIX(2,SQMATRIX(2,INT))) :=
squareMatrix matrix [[n,n**2],[n**3,n**4]]
--R
--R
--R +++ 0 1+ +- 1 0 ++ ++- 1 1 + +- 1 - 1+++
--R ||| | | || || | | |||
--R ||+- 1 0+ + 0 - 1+| |+- 1 - 1+ + 1 - 1+||
--R || | | ||
--R ||+0 - 1+ +1 0+ | | +1 - 1+ + 1 1+ ||
--R ||| | | | | | | | | | ||
--R |++1 0 + +0 1+ + + +1 1 + +- 1 1+ +|
--R (4) | |
--R |++- 2 0 + +0 - 2++ ++- 2 - 2+ +2 - 2+ +|
--R ||| | | || || | | | ||
--R ||+ 0 - 2+ +2 0 +| |+ 2 - 2+ +2 2 + ||
--R || | | ||
--R || +2 0+ + 0 2+| | + 2 2+ +- 2 2 +||
--R || | | | || | | | | |||
--R ++ +0 2+ +- 2 0++ + +- 2 2+ +- 2 - 2+++
--R Type: SquareMatrix(2,SquareMatrix(2,SquareMatrix(2,Integer)))
--E 5
--S 6 of 8
o ** 2
--R
--R
--R +++- 1 - 3+ +3 - 1+ + + +2 - 4+ + 4 2+ ++
--R ||| | | | | | | | | | ||
--R ||+ 3 - 1+ +1 3 + | | +4 2 + +- 2 4+ ||
--R || | | ||
--R || + 1 3+ +- 3 1 +| |+- 2 4 + +- 4 - 2+||
--R || | | | || || | | |||
--R |+ +- 3 1+ +- 1 - 3++ ++- 4 - 2+ + 2 - 4++|
--R (5) | |
--R |+ +6 - 2+ + 2 6+ + + + 8 4+ +- 4 8 ++|
--R || | | | | | | | | | |||
--R || +2 6 + +- 6 2+ | | +- 4 8+ +- 8 - 4+||
--R || | | ||
--R ||+- 6 2 + +- 2 - 6+| |+- 8 - 4+ +4 - 8+ ||
--R ||| | | || || | | | ||
--R +++- 2 - 6+ + 6 - 2++ ++ 4 - 8+ +8 4 + ++
--R Type: SquareMatrix(2,SquareMatrix(2,SquareMatrix(2,Integer)))
--E 6
--S 7 of 8
% + 2
--R
--R
--R + ++1 - 3+ +3 - 1+ + + +2 - 4+ + 4 2+ ++
--R | || | | | | | | | | | ||
--R | |+3 1 + +1 3 + | | +4 2 + +- 2 4+ ||
--R | | | | ||
--R | |+ 1 3+ +- 1 1 +| |+- 2 4 + +- 4 - 2+||
--R | || | | || || | | |||
--R | ++- 3 1+ +- 1 - 1++ ++- 4 - 2+ + 2 - 4++|
--R (6) | |
--R |+ +6 - 2+ + 2 6+ + ++10 4 + +- 4 8 ++|
--R || | | | | | || | | |||
--R || +2 6 + +- 6 2+ | |+- 4 10+ +- 8 - 4+||
--R || | | ||
--R ||+- 6 2 + +- 2 - 6+| |+- 8 - 4+ +6 - 8+ ||
--R ||| | | || || | | | ||
--R +++- 2 - 6+ + 6 - 2++ ++ 4 - 8+ +8 6 + ++
--R Type: SquareMatrix(2,SquareMatrix(2,SquareMatrix(2,Integer)))
--E 7
--S 8 of 8
o := 2
--R
--R
--R +++2 0+ +0 0++ ++0 0+ +0 0+++
--R ||| | | || || | | |||
--R ||+0 2+ +0 0+| |+0 0+ +0 0+||
--R || | | ||
--R ||+0 0+ +2 0+| |+0 0+ +0 0+||
--R ||| | | || || | | |||
--R |++0 0+ +0 2++ ++0 0+ +0 0++|
--R (7) | |
--R |++0 0+ +0 0++ ++2 0+ +0 0++|
--R ||| | | || || | | |||
--R ||+0 0+ +0 0+| |+0 2+ +0 0+||
--R || | | ||
--R ||+0 0+ +0 0+| |+0 0+ +2 0+||
--R ||| | | || || | | |||
--R +++0 0+ +0 0++ ++0 0+ +0 2+++
--R Type: SquareMatrix(2,SquareMatrix(2,SquareMatrix(2,Integer)))
--E 8
)spool
)lisp (bye)
|