Message on thread Stack Usage?

Re: Stack Usage? (2018-07-07 17:54, SHIRAISHI Kazuo, #81587)

EXIT FUNCTION may increase the execution time.
They can be removed.
Example.

100 FUNCTION ackermann(m,n)
110 IF m = 0 THEN
120 LET ackermann=n+1
130 ELSEIF n = 0 THEN
140 LET ackermann=ackermann(m-1,1)
150 else
160 LET ackermann=ackermann(m-1,ackermann(m,n-1))
170 END IF
180 END FUNCTION
190 INPUT m,n
200 PRINT ackermann(m,n)
210 END
Reply to #81579

Reply to #81587×

You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Thread

Stack Usage? (2018-07-06 21:53, toml_12953, #81579)
Re: Stack Usage? (2018-07-07 14:31, SHIRAISHI Kazuo, #81583)
Re: Stack Usage? (2018-07-07 17:25, SHIRAISHI Kazuo, #81585)
Re: Stack Usage? (2018-07-07 18:47, toml12953, #81588)
Re: Stack Usage? (2018-07-08 09:31, SHIRAISHI Kazuo, #81592)
Re: Stack Usage? (2018-07-14 10:30, Shiraishi Kazuo, #81601)
Re: Stack Usage? (2018-07-07 17:54, SHIRAISHI Kazuo, #81587)