There is a summation related to adding effect of many equal equally spaced oscillators.
I was reading the first few lines of Feynman's lectures on physics (chapter 30) and the way Feynman did the summation $\sum^{n-1}_{r=0}\cos(\omega t+r\phi)$ became a problem. He used a geometrical approach and this seems totally fine to me.
As I compute this summation algebraically, what I got is $$ \sum^{n-1}_{r=0}\cos(\omega t+r\phi)=\frac{\sin\left(\frac{n\phi}{2}\right)}{\sin\left(\frac{\phi}{2}\right)}\cos\left(\frac{n-1}{2}\phi\right) $$
However, as suggested by Feynman, it should be $$\frac{\sin\left(\frac{n\phi}{2}\right)}{\sin\left(\frac{\phi}{2}\right)}$$ He has a perfect geometrical interpretation for that but the result is just different. So I used desmos to draw them, the green curve in the picture is his answer, the overlapped purple and red curves are the summation itself and my answer respectively.
Did I misundertood something? Anyway I just don't know what is going on. If Feynman's geometry method is wrong, why is that? My peaceful weekend has already been destoryed by this contradiction.