pi() defined
vector element calculation
calculation of (S-Sn), serial version