Update aplK.py
This commit is contained in:
parent
ebff16e347
commit
ea2139bc66
7
aplK.py
7
aplK.py
@ -790,7 +790,7 @@ class AlgebraAplK(UniqueRepresentation, Parent):
|
||||
max_dim = dim
|
||||
apl = SimplicialAlgebraplN(dim)
|
||||
if dim > 0:
|
||||
values[k] = ((-1) ** ((dim * (dim-1)) // 2)) * \
|
||||
values[k] = ((1) ** ((dim * (dim-1)) // 2)) * \
|
||||
apl.integrand(cochain[k])
|
||||
else:
|
||||
values[k] = apl(cochain[k])
|
||||
@ -828,7 +828,7 @@ class AlgebraAplK(UniqueRepresentation, Parent):
|
||||
face_indexes = [simplex.index(i) for i in face]
|
||||
#print("dim: ",n," pol: ",pol," face_idx: ",face_indexes)
|
||||
propagation += value * \
|
||||
((-1) ** ((n * (n-1)) // 2)) * factorial(n) * \
|
||||
((1) ** ((n * (n-1)) // 2)) * factorial(n) * \
|
||||
pol.propagate(face_indexes, dim)
|
||||
return propagation
|
||||
|
||||
@ -1060,6 +1060,7 @@ class AlgebraAplK(UniqueRepresentation, Parent):
|
||||
if(self.elements[sFace] != aFace):
|
||||
raise ValueError("the assignation is not valid")
|
||||
print("Check ok", flush=True)
|
||||
return True
|
||||
|
||||
def differential(self):
|
||||
"""
|
||||
@ -1141,7 +1142,7 @@ class AlgebraAplK(UniqueRepresentation, Parent):
|
||||
for k in self.elements.keys():
|
||||
dim = len(k)-1
|
||||
# the sign is due to stoke's theorem
|
||||
cochain[k] = ((-1) ** ((dim*(dim-1)) // 2)) * \
|
||||
cochain[k] = ((1) ** ((dim*(dim-1)) // 2)) * \
|
||||
self.elements[k].integral()
|
||||
return cochain
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user