lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

2018-04-24 19:26 GMT+02:00 Viacheslav Usov <>:

>> Talking about notation - I do recall from my days of using mathematics,
>> that the index of a summation was more likely to run from 1 to n.
> I am not exactly sure what you mean by "using mathematics", but the use of
> index zero to denote the initial element in a series has been standard since
> at least Cauchy's Cours d'Analyse (1821), where in section 6.1 he wrote u_0,
> u_1, u_2, u_3, etc, to introduce infinite series, and three lines below, s_n
> = u_0 + u_1 + u_2 + .. + u_{n - 1} to define its partial sum.
> Way before any C programmers existed.

It is natural in the context of Taylor series and polynomials.

Of course, there are Laurent series too, where you start at a negative index :-)