I have a simple question. If I compute N sample values of a single cycle of a discrete sinewave (whose initial phase is zero radians), will the value of the last sample be equal to zero?

  • $\begingroup$ Note: Stochastic points on waves need not sum to zero if they are not discretized in uniform intervals. $\endgroup$ Oct 27, 2018 at 5:18

1 Answer 1


No. Assuming the period of the signal is N samples since your indexing is zero based the $Nth$ sample will be indexed as $N-1$.

Your signal would be modelled by:

$$ x[n] = A \sin \left( \frac{2\pi}{N}n \right) $$

Thus $x[N]=0$ and $x[N-1] = x[-1] = -x[1]$.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.