
Debugging Process a nd Features
6 Test the function for a slightly larger value of m,suchas6,tobesurethe
results a re s till accurate. To make it easier to verify
collatzplot fo r m =6
as well as the results for
collatz, add this line at the end of collatz.m
sequen
ce
which displays the series in the Command Window. The results for when
n=6are
sequen
ce =
6310516
8421
Then run collatzplot for m =6bytyping
6-123
Commentaires sur ces manuels