Calculus Week 1 Exercise 2 - Arrays look identical f_of_omega

@esanina see here: C2_W1 errors in function w1_unittest.test_f_of_omega(f_of_omega) - #3 by peajay03

I went ahead and debugged w1_unittest.py for you all. There are two errors in the file that I was able to correct, and when corrected, the function generated the passing result that is expected. Bottom line, if you’re going to ask the user/student to define data as float32, you have to make sure your function defines the matrices using the same float values, and you need to allow for tolerances in case there are small differences.

Please LMK when updated, so I can proceed with the unit. Thank you.

1 Like