A terminal-based Reverse Polish Notation calculator built with Rust and Ratatui.
- Arithmetic:
+,-,*,/,^,% - Logarithmic:
ln,log,exp,10x - Math Functions:
sqrt,cbrt,abs,root,inv(1/x),!(factorial) - Constants:
pi,e - Trigonometry:
sin,cos,tan,asin,acos,atan - Stack Operations:
swap,drop,clear,undo - Interactive TUI with stack visualization and calculation history
cargo run- Type numbers and press Enter to push to stack
- Type commands and press Enter to execute
- Single-character operators (
+,-,*,/,^,%,!) execute immediately qto quit,helpfor command list,Escto clear stack
Input: 5 4 +
Stack: [9]
Input: 3 *
Stack: [27]
git clone <repo-url>
cd rpncalc
./install.shOr for user-only installation:
cargo install --path .cargo test- Rust 1.70+
- Terminal with Unicode support