pub fn hyperoperation<Num: NumForKnuth>(
    num_a: &Num,
    num_b: Num,
    arrows: u8
) -> Num
Expand description

Calculate result of hyperoperation

First argument is the first number, second argument is the second number. Third argument is number of arrows in Knuth’s up-arrow notation.
Example: hyperoperation(4, 3, 2) corresponds to 4 ↑↑ 3

This function is equivalent to KnuthNotation::new(num_a, num_b, arrows).evaluate(). More about Hyperoperation struct…

assert_eq!(
    hyperoperation::<u64>(&3, 3, 2), // 3 ↑↑ 3
    7625597484987
);