Next: Zip it up
Up: Assignment 9: Discrete Fourier
- Take the code I have provided and encapsulate it in a procedure.
If you are not sure of the Maple syntax for procedures, read the
book. Also, check out the examples from past homework solutions.
You procedure should be called dft. It should take two arguments,
an array of complex numbers (the signal) and an integer indicating
the length of the array. It should return an array of complex
numbers (the DFT).
- Test your procedure and make sure it yields the same result
as the unencapsulated code.
Allen B. Downey