Does anyone know of a basic beginners tutorial on how to read mark up like this notation when talking about algorithms or what this type of markup is officially referred to as so I know what to google for?
taken from here.
Does anyone know of a basic beginners tutorial on how to read mark up like this notation when talking about algorithms or what this type of markup is officially referred to as so I know what to google for?
taken from here.
that's not an algorithm
that's just the notation used for elements of a series
usually a_n is for element n
S_n is for the sum up to element n
Typically, this sort of markup is written in some variant of TeX (mostly LaTeX).
try this one first.
I usually use wxMaxima. Enter an expression like: s[N] := sqrt(1/N*sum((x[i]-x)^2,i,1,N))
, and it formats it. It can also create LaTeX output.
It's a formula for computing the standard deviation, not an algorithm. There's two basic algorithms for this, a two pass and a one pass. The two pass computes the mean (x̄), then the sum of differences squared. The one pass algorithm uses one of the equivalent formulas on that page to compute the sum of all terms (for the mean) and sum of squares of each term simultaneously.