help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: Parse Error
From
:
Doug Stewart
Subject
:
Re: Parse Error
Date
:
Thu, 22 Sep 2016 22:13:12 -0400
function collatz3(n)
loopcount=0;
while n ~= 1
loopcount=loopcount + 1;
if mod(n,2)==0
n=(n/2)
else
n=((n*3)+1)
endif;
endwhile;
loopcount
endfunction;
--
DAS
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
Parse Error
,
platinumrecord
,
2016/09/22
Re: Parse Error
,
Nicholas Jankowski
,
2016/09/22
Re: Parse Error
,
Doug Stewart
,
2016/09/22
Re: Parse Error
,
Doug Stewart
<=
Re: Parse Error
,
Andreas Weber
,
2016/09/23
Prev by Date:
Re: Parse Error
Next by Date:
Re: Parse Error
Previous by thread:
Re: Parse Error
Next by thread:
Re: Parse Error
Index(es):
Date
Thread