The following form of the factorization problem is considered: Given a function

vanishing for

, and with a nonnegative Fourier transform

, rind a function

with energy spectrum

and such that

outside the interval (0, a). A numerical method for determining

is developed involving only the discrete Fourier series.