Update aplK.py

This commit is contained in:
calquezar 2024-08-22 17:32:59 +02:00
parent 74903afce7
commit 70f5a78d4d

View File

@ -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))