/usr/share/axiom-20170501/src/algebra/POLY2.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 | )abbrev package POLY2 PolynomialFunctions2
++ Description:
++ This package takes a mapping between coefficient rings, and lifts
++ it to a mapping between polynomials over those rings.
PolynomialFunctions2(R,S) : SIG == CODE where
R : Ring
S : Ring
SIG ==> with
map : (R -> S, Polynomial R) -> Polynomial S
++ map(f, p) produces a new polynomial as a result of applying
++ the function f to every coefficient of the polynomial p.
CODE ==> add
map(f, p) == map(x1 +-> x1::Polynomial(S), x2 +-> f(x2)::Polynomial(S),
p)$PolynomialCategoryLifting(IndexedExponents Symbol,
Symbol, R, Polynomial R, Polynomial S)
|