This is a rust implementation of the hyperoperator.
Go to file
2024-09-25 21:38:06 -07:00
src init: Add a complete hyperop program 2024-09-25 21:35:35 -07:00
.gitignore init: Add a complete hyperop program 2024-09-25 21:35:35 -07:00
Cargo.lock init: Add a complete hyperop program 2024-09-25 21:35:35 -07:00
Cargo.toml init: Add a complete hyperop program 2024-09-25 21:35:35 -07:00
Containerfile feat: Optionally containerize 2024-09-25 21:38:06 -07:00
LICENSE docs: Add a license and README 2024-09-25 21:38:06 -07:00
README.md docs: Add a license and README 2024-09-25 21:38:06 -07:00

This is a small CLI program to perform hyperoperations. In traditional mathematical syntax, the parameters used herein follow this sort of structure: AUGEND OPERATOR ADDEND = RESULT.

With no verbosity, only RESULT is printed to standard out.

With an operator of 2 (multiplication), augend of 3, and addend of 4, this would be 3 * 4 = 12.

Usage is generated by clap.

$ ./hyperoperate --help
hyperoperate 0.1.0

USAGE:
    hyperoperate [OPTIONS] --operator <OPERATOR> --addend <ADDEND>

OPTIONS:
    -a, --addend <ADDEND>        the number of iterations (traditionally the RHS)
        --augend <AUGEND>        the value applied at the base case (traditionally the LHS)
                                 [default: 0]
    -h, --help                   Print help information
    -o, --operator <OPERATOR>    the Nth operator in the series of hyperoperations, where 0 =
                                 succession, 1 = addition, 2 = multiplication, 3 = exponentiation, 4
                                 = tetration, ad. infinitum
    -v, --verbose                verbosity
    -V, --version                Print version information