| 1 | initial version |
Use this:
return sum(N(d,i) for i in range(1,n))
Your syntax is for symbolic sums only.
| 2 | No.2 Revision |
Use this:
return sum(N(d,i) for i in Your syntax is for symbolic sums only.
| 3 | No.3 Revision |
Use this:
return sum(N(d,i) for i in range(1,n))
Your syntax is for symbolic sums only.only. And remove your first line.
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.