diff --git a/aplK.py b/aplK.py index 510755f..d83b489 100644 --- a/aplK.py +++ b/aplK.py @@ -83,7 +83,7 @@ class AplN(DifferentialGCAlgebra_multigraded, UniqueRepresentation): #return value*factorial(self.n)*prod(self.gens()[self.n+2:]) gens = self.gens() - tExp = [0*randint(0,4) for i in range(self.n+1)] # Random pol in variables t_i, 1<=i<=n + tExp = [0*randint(0,2) for i in range(self.n+1)] # Random pol in variables t_i, 1<=i<=n yExp = [0]+[1]*self.n exp = tuple(tExp + yExp) #print(value, " - ", exp, flush=True) @@ -589,7 +589,7 @@ class SimplicialAplN(AplN, UniqueRepresentation): basis += apl.get_primitive_basis_of_a_monomial(apl,monomial) basis = list(set(basis)) #basis += p._add_kernel_terms_to_primitive_basis(basis) - t_degree = 2 + t_degree = 0 y_degree = self.total_degree() #self.parent().n #p.total_degree()#p.degree()[0] basis += apl.add_kernel_terms_to_primitive_basis(apl,t_degree, y_degree-1) basis = list(set(basis))