Hello, Erin. It's a really interesting problem. According to Solution 1539769, I think it would be worthwhile for you to include some (small) tolerances within the assert statements in your Test Suite, to allow for rounding due to computations in 'double precision'. —DIV
I agree with David.
522 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
238 Solvers
206 Solvers
413 Solvers
Pernicious Anniversary Problem
739 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!