[SciPy-dev] Latex and docstrings
Pauli Virtanen
pav+sp@iki...
Wed Feb 10 03:48:51 CST 2010
Wed, 10 Feb 2010 11:12:14 +0900, David Cournapeau wrote:
[clip]
> for 0 <= k < N,
>
> N-1
> y[k] = x[0] + (-1)**k x[N-1] + 2 * sum x[n]*cos(pi*k*n/(N-1))
> n=0
>
> But now, it is:
>
> y_k = x_0 + (-1)^k x_{N-1} + 2\\sum_{n=1}^{N-2} x_n
> \\cos\\left({\\pi nk\\over N-1}\\right), \\qquad 0 \\le k < N.
>
> I much prefer the former (the latter is unreadable in a terminal IMO). I
> have of course no issue in putting the latex formula in the scipy docs,
Someone could try to write a "simple math" plugin for Sphinx that
converted poor man's math notation to Latex.
Cheers,
Pauli
More information about the SciPy-Dev
mailing list