This file is indexed.

/usr/share/axiom-20170501/src/algebra/RFFACTOR.spad is in axiom-source 20170501-3.

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
)abbrev package RFFACTOR RationalFunctionFactorizer
++ Author: P. Gianni
++ Date Last Updated: March 1995
++ Description:
++ \spadtype{RationalFunctionFactorizer} contains the factor function
++ (called factorFraction) which factors fractions of polynomials by factoring
++ the numerator and denominator. Since any non zero fraction is a unit
++ the usual factor operation will just return the original fraction.

RationalFunctionFactorizer(R) : SIG == CODE where
  R : EuclideanDomain  -- R with factor for R[X]

  P  ==>  Polynomial R
  FP ==>  Fraction P
  SE ==>  Symbol

  SIG ==> with

    factorFraction : FP -> Fraction Factored(P)
      ++ factorFraction(r) factors the numerator and the denominator of
      ++ the polynomial fraction r.

  CODE ==> add

     factorFraction(p:FP) : Fraction Factored(P) ==
       R is Fraction Integer =>
         MR:=MRationalFactorize(IndexedExponents SE,SE,
                                Integer,P)
         (factor(numer p)$MR)/ (factor(denom p)$MR)

       R has FiniteFieldCategory =>
         FF:=MultFiniteFactorize(SE,IndexedExponents SE,R,P)
         (factor(numer p))$FF/(factor(denom p))$FF

       R has CharacteristicZero =>
          MFF:=MultivariateFactorize(SE,IndexedExponents SE,R,P)
          (factor(numer p))$MFF/(factor(denom p))$MFF
       error "case not handled"