amodgcd.spad line 67 [edit on github]
This is unfinished package for computing primitive gcd over algebraic extensions.Algebraic extension is defined by list of polynomial forming triangular system. Currently implemented is only trial division.
alg_reduce(x, lm, lv, lz) reduces x modulo elements of lm.
alg_reduce0(x, m, lv, z) performs single reduction step.
alg_trial_division(x, y, lm, lv, lz) checks if x is divisible by y in algebraic extension defined by lm. lz is list of algebraic variables, lv is list of independent (polynomial) variables. Other variables serve as parameters.
coeffs0(x, lv, lp) is used by coeffs1
coeffs1(x, lv) computes list of coefficients of x with respect to variables in lv. Variables in lv must be decreasing and bigger than all other variables of x.
lcx0(x, lv) computes leading coefficient of x and corresponding product of variables (monomial with coefficient 1) with respect to variables in lv Variables in lv must be decreasing and bigger than all other variables of x.
lcz(x, z) computes leading coefficient and degree of x with respect to variable z.