Tetration是指数后的下一个hyperoperator。运营商以↑↑
- 或^^
(以ASCII表示) - Knuth's notation。
序列中的下一个操作是pentation,然后是hexation,heptation,octation等。Ackermann's three-argument function递归计算这些操作。
╭────────┬────────────────┬─────────────┬───────────────────╮
│ Level │ Name │ Notation │ Ackermann (3-arg) │
╞════════╪════════════════╪═════════════╪═══════════════════╡
│ 1 │ Successor │ a++ (unary) │ φ(a, 1, 0) │
│ 2 │ Addition │ a+b │ φ(a, b, 0) │
│ 3 │ Multiplication │ a×b │ φ(a, b, 1) │
│ 4 │ Exponentiation │ a↑b │ φ(a, b, 2) │
│ 5 │ Pentation │ a↑↑b │ φ(a, b, 3) │
│ 6 │ Hexation │ a↑↑↑b │ φ(a, b, 4) │
│ 7 │ Heptation │ a↑↑↑↑b │ φ(a, b, 5) │
│ 8 │ Octation │ a↑↑↑↑↑b │ φ(a, b, 6) │
╰────────┴────────────────┴─────────────┴───────────────────╯
如何,这是一个Haskell问题? –
查看原始三个参数[Ackermann函数](https://en.wikipedia.org/wiki/Ackermann_function)! – pigworker
注意'n! 〜n^n' – Lol4t0