We changed our privacy policy. Read more.

The sampling theorem in the form used (more Nyquist than Shannon) only applies to periodic functions. As your sampling interval has length $1$, this only allows for frequencies that have $1$ as one of their periods, that is, for angular frequencies $2\pi f$ where the cyclic frequency $f$ is an integer. If you use $1/1000$ as spacing between frequencies, then ...

Only top voted, non community-wiki answers of a minimum length are eligible