I am looking for a resource that can explain common math operations found in white papers in terms that that coders with minimal math background can understand in terms of coding idioms — for loops etc.
I frequently see the same kinds of symbols in different equations and that the often result in easily comprehensible algorithms. An overview of what the symbols mean would go a long way to making academic paper more comprehensible.
the only ones i can think of that are not obvious (arithmetic, trig functions etc) and have a direct equivalent in code are sum,
Σ, and productΠ.so something like
Σ a[i]is:and some related details: a subscript (small number below the line) is often the same as an array index (so the
iinΣ a[i]might be written small, below and to the right of thea). similarly the range of theivalue (here0to the length ofa) may be given as two small numbers just to the right of theΣ(start value,0, at the bottom, finish value,n, at the top).and the equivalent product is
Π a[i]:update in the comments xan suggests covering matrices too. those get complicated, but at the simplest you might see something like:
(where it’s much more likely that the
iandjare subscripts, as described above). and that has implied loops:worse, often that will be written simply as
a = M band you’re expected to fill everything in yourself….update 2 the first equation in the paper you reference below is
w(s[i],0) = alpha[d] * Size(s[i]). as far as i can see, that’s nothing more than:and other terms are similarly fancy-looking but not actually complicated function calls and multiplications. note that
|...|isabs(...)and the “dot” is multiplication (i think).