| 1 | initial version |
In the second part you are using Python ints instead of SageMath Integers.
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 ints instead of SageMath Integers.
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).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.