It is not only more pythonic if you cut the series at N-1 it is also
natural
if you are used to work with spectral methods and ffts, because a
trig. poly. with deg
N-1 has N coefficients, since the constant term has degree 0.

greez
Maldun

On Jun 18, 2:25 am, Andrey Novoseltsev <novos...@gmail.com> wrote:
> Hello,
>
> There is a discrepancy between the documentation and behaviour of
> partial sums of Fourier series:http://trac.sagemath.org/sage_trac/ticket/8603
>
> If the cut-off parameter is N, then the documentation says that N-th
> term will be included, but it is not.
>
> To fix it, one should either adjust the documentation, which is easy
> and does not break any code, or change the behaviour, which leads to
> exceptions in doctests and can break similar user code. What should we
> do? Including N seems a bit more natural, but stopping at N-1 is more
> Pythonic, i.e. like range(N).
>
> Thank you,
> Andrey

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to