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.
Project Euler: Problem 8, Find largest product in a large string of numbers
329 Solvers
Flag largest magnitude swings as they occur
588 Solvers
Check if number exists in vector
4734 Solvers
Convert a Cell Array into an Array
446 Solvers
1197 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!