Post Reply 
Calc Crash (Real and Virtual)
09-09-2016, 07:26 PM (This post was last modified: 09-09-2016 07:27 PM by toml_12953.)
Post: #1
Calc Crash (Real and Virtual)
When I run the following program to compute the Ackermann function, both the virtual and real calculators crash. I expected to get an error but not a crash.
Try running it for X=4 and Y=3

Tom L

Code:
FNA(M,N)
BEGIN
  IF M==0 THEN
    RETURN N+1;
  END;
  IF N==0 THEN
    RETURN FNA(M-1,1);
  ELSE
    RETURN FNA(M-1,FNA(M,N-1));
  END;
END;

EXPORT ACKERMANN()
BEGIN
  WHILE 1==1 DO
    PRINT();
    INPUT({X,Y},{'X','Y'});
    MSGBOX("Ackermann= "+FNA(X,Y));
    GETKEY;
  END;
END;

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Calc Crash (Real and Virtual) - toml_12953 - 09-09-2016 07:26 PM
RE: Calc Crash (Real and Virtual) - Arno K - 09-09-2016, 08:24 PM
RE: Calc Crash (Real and Virtual) - Arno K - 09-09-2016, 10:49 PM
RE: Calc Crash (Real and Virtual) - Arno K - 09-15-2016, 11:48 AM



User(s) browsing this thread: 1 Guest(s)