Homework #7

All problems must be in a single *.m file. You may need additional files for functions or class definitions. Make a separate block in the code for each problem. Do not submit individual files for each problem. See previous solutions.

Contents

Problem 1 (2 Points)

Create an N-precision data class where N digits of precision are used for calculations. N should be object property. Overload the addition, subtraction, division and multiplication operations. Use your result to revisit HW6 problem 5, which should now be very easy.

Problem 2 (2 Points)

Simulate the experiment showing the Arago spot (aka Poisson spot). Compare the result when using the simple Huygens' principle to that with the Huygens-Fresnel calculation. Clearly indicate the physical dimentions of the experiment.

Problem 3 (1 Point)

Write your own function that reproduces the behavior of 'fft' and demonstrate its use in comparison to 'fft'.