/////// PROCEDURE TO COMPUTE SASBI-STANDARD BASES ////// // The following libraries will be used: LIB"algebra.lib"; LIB"sagbi.lib"; LIB "grobcov.lib"; LIB"teachstd.lib"; //for ecart LIB"elim.lib"; LIB "Sasbi.lib"; ////////// Procedure to comupte Sasbi-Standard Weak normal form //////// // Let A=B_> be a localization of polynomial subalgebra B with respect to a local monomial ordering >. For a polynomial vector f in (R_>)^n (R_> is a localization of ring R with respect to >) and a finite set of polynomials vectors I in a module (A)^n, the following procedure computes a Sasbi-Standard weak normal form of f with respect to I over A. //The following procedure needs two more procedures SSDL (provides a list of vectors "ag" such that lm(f)=lm(ag) with a in A and g in I) and SortE (provides a sorted ascending list of vectors from SSDL with respect to ecart). // Main Procedure: proc ModWSSNF(vector f, module I, ideal A) "USAGE: ModWSSNF(f,I,A); f a polynomial vector, I an A-module, A a subalgebra (which has a finite Sasbi basis). RETURN: a polynomial vector h." { A=Sasbi(A); module G=I; vector h=f; vector h1; poly c; list D; map psi ; int i,k; while(h!=0 && h1!=h) { D=SSDL(h,G,A); D=sortE(D); if (size(D)>0) { vector hi=D[1]; if (ecart(h)