Algorithm 7 - Evaluation of a trigonometric polynomial - Sobich, Lucja (1969)