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 »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| ListArray and Simplemenu (function) | Rudy M | 4 | 489 |
12-26-2025, 04:52 PM Last Post: Rudy M |
|
| GWBASIC DEF Function | doughayman | 2 | 851 |
08-18-2024, 10:47 PM Last Post: doughayman |
|
| Wave Function Collapse | dbox | 10 | 2,586 |
07-09-2024, 04:23 PM Last Post: dbox |
|
Users browsing this thread: 1 Guest(s)


![[Image: Ackerm-Funktioniert2022-07-20.jpg]](https://i.ibb.co/mcFfvJc/Ackerm-Funktioniert2022-07-20.jpg)

![[Image: Variablen-Typ-Geschwindigke.jpg]](https://i.ibb.co/ZYmgVLr/Variablen-Typ-Geschwindigke.jpg)