Algorithms for Various Trigonometric Power Sums | Synapse