I'd suggest adding test cases in which xlow<0 (and maybe also xhigh<0).
54227 Solvers
874 Solvers
Project Euler: Problem 3, Largest prime factor
379 Solvers
573 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!