/usr/share/axiom-20170501/src/algebra/SUP2.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 | )abbrev package SUP2 SparseUnivariatePolynomialFunctions2
++ Description:
++ This package lifts a mapping from coefficient rings R to S to
++ a mapping from sparse univariate polynomial over R to
++ a sparse univariate polynomial over S.
++ Note that the mapping is assumed
++ to send zero to zero, since it will only be applied to the non-zero
++ coefficients of the polynomial.
SparseUnivariatePolynomialFunctions2(R,S) : SIG == CODE where
R : Ring
S : Ring
SIG ==> with
map : (R->S,SparseUnivariatePolynomial R) -> SparseUnivariatePolynomial S
++ map(func, poly) creates a new polynomial by applying func to
++ every non-zero coefficient of the polynomial poly.
CODE ==> add
map(f, p) == map(f, p)$UnivariatePolynomialCategoryFunctions2(R,
SparseUnivariatePolynomial R, S, SparseUnivariatePolynomial S)
|