What's wrong with my Goertzel algorithm implementation?
Why do you think the two should be equal?

Check out the final line of equation (6) in the article you link to:



I believe your misunderstanding is to not take account of the $e^{j\omega_0n}$ term.