3 ms·
Oops! I shouldn't try out new features right before going to bed... Here's the proper formula: const tetrate = (a, n)=> n=== 0n ? 1n : a * * (tetrate(a, n - 1n
by johnhenry 8y ago
Oops! I shouldn't try out new features right before going to bed... Here's the proper formula:
const tetrate = (a, n)=> n=== 0n ? 1n : a * * (tetrate(a, n - 1n));
And I definitely am not getting the same results described. However; it's still possible to get a "Maximum BigInt size exceeded" error, and I wonder if anyone knows how this is determined?
Edit: it looks like I posted the "proper" formula originally, but HN's formatting strips away Javascript's exponentiation operator. So, I'm using "* *" instead.