src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
Containerfile | ||
LICENSE | ||
README.md |
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