Update aplK.py

This commit is contained in:
calquezar 2024-08-18 14:55:00 +02:00
parent d9bf5e9747
commit fe3b7a0a51

View File

@ -1141,7 +1141,7 @@ class AlgebraAplK(UniqueRepresentation, Parent):
for k in self.elements.keys(): for k in self.elements.keys():
dim = len(k)-1 dim = len(k)-1
# the sign is due to stoke's theorem # the sign is due to stoke's theorem
cochain[k] = ((-1) ** (((dim-1) * (dim-2)) // 2)) * \ cochain[k] = ((-1) ** (((dim) * (dim-1)) // 2)) * \
self.elements[k].integral() self.elements[k].integral()
return cochain return cochain