Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Deprecation warnings are not errors, and so show only once per session by default.

The problem is a(n0). Since you only specify it as an expression and not a function, in principle there could have been other variables (e.g. a(n0)+n1-n1) involved. There have been long discussions about this among the developers, but quite some time ago it was decided that one must have the variable.

If you are sure you will always have x as the variable, then you can just add the line

a(x)=a S=S+tuple([a(n0)])

and all should be well. Partial sums are fun, hope you enjoy it!

Deprecation warnings are not errors, and so show only once per session by default.

The problem is a(n0). Since you only specify it as an expression and not a function, in principle there could have been other variables (e.g. a(n0)+n1-n1) involved. There have been long discussions about this among the developers, but quite some time ago it was decided that one must have the variable.

If you are sure you will always have x as the variable, then you can just add the linefirst line here

a(x)=a
  S=S+tuple([a(n0)])

S=S+tuple([a(n0)])

and all should be well. Partial sums are fun, hope you enjoy it!