This file is indexed.

/usr/lib/open-axiom/input/matrix22.input is in open-axiom-test 1.4.1+svn~2626-2ubuntu2.

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
--Copyright The Numerical Algorithms Group Limited 1991.

)clear all
-- this file shows nesting of matrices
m:SQMATRIX(2,INT) := squareMatrix matrix [[0,1],[-1,0]]
-- this determinant can be computed
determinant m
n:SQMATRIX(2,SQMATRIX(2,INT)) :=
  squareMatrix matrix [[m,m**2],[m**3,m**4]]
-- this determinant cannot be computed by Scratchpad II
-- because there is no function that computes the determinant of a
-- matrix whose entries belong to a noncommutative ring
)set mes test off
determinant n
)set mes test on
-- another level of matrix
o:SQMATRIX(2,SQMATRIX(2,SQMATRIX(2,INT))) :=
   squareMatrix matrix [[n,n**2],[n**3,n**4]]
o ** 2
-- add 2 to this matrix
% + 2
-- what is 2 as a matrix?
o := 2