Fourier series visualisation with D3.js
bl.ocks.org
bl.ocks.org
Article: https://news.ycombinator.com/item?id=7543691 Fourier Discussion: https://news.ycombinator.com/item?id=7544481
Direct link to Fourier animation: http://math.stackexchange.com/a/738048
More advice from the discussion: http://betterexplained.com/articles/an-interactive-guide-to-...
Speaking of fourier, you need to see this http://en.m.wikipedia.org/wiki/File:Fourier_transform_time_a...
function FT(A, N, φ) {
φ = φ || 0;
return function(x) {
var n = -1, y = 0;
while (++n < N) {
y += A[n] * Math.sin(τ * (n + 1) * x + φ);
}
return y;
}
}
hehe, seems annoying to type. Copy&paste everytime one of them is needed? Ctrl-K f * → φ
Ctrl-K t * → τ
In general: Ctrl-K <latin letter> * → <greek equivalent>In emacs it's
C-| tex
then \phi → φ
etc, which can be quite a bit more typing but can be easier to remember if you already know the TeX instructions for everything.Now we just need to convince other editors to add something similar...
There are other ways of inputting digraphs: C-x 8 RET lets you enter the name of any unicode symbol.
I wrote about the many ways of inputting digraphs and unicode here:
http://www.masteringemacs.org/articles/2010/10/13/diacritics...
I never knew about <input type="range" ... but will be sure to play with it.