Well, I had task to create function that does Fourier series with some mathematical function, so I found all the formulas, but the main problem is when I change count of poi