07-20-2022, 11:40 AM
Ackermann Function
|
07-20-2022, 08:44 PM
(This post was last modified: 07-20-2022, 09:06 PM by Kernelpanic.)
I've been experimenting a bit, and I think I've come across an interesting point: the variable types.
The screenshot is practically self-explanatory. It is fastest if one declare the type with _Unsigned Integer in the declaration and in the function itself: 76.922 seconds. In both Long is the slowest: 90.711 seconds, and Long in the declaration and _Unsigned Integer in the function, is in the middle: 80,219 seconds. PS: And so, some more tenths of a second less: 76.484 Code: (Select All) Declare Function ackermann(m as _Unsigned Integer, n as _Unsigned Integer) as _Unsigned Integer |
« Next Oldest | Next Newest »
|
Users browsing this thread: 11 Guest(s)