1 | initial version |
In the second part you are using Python int
s instead of SageMath Integer
s.
Use srange
instead of range
, or convert to an Integer
before the division, e.g. Integer(i[0])/len(a)
.
2 | No.2 Revision |
In the second part you are using Python int
s instead of SageMath Integer
s.
Use srange
(with universe=ZZ
if you're not passing an Integer
) instead of range
, or convert to an Integer
before the division, e.g. Integer(i[0])/len(a)
.