Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eze-kiel/rrpn
Rust RPN Calculator
https://github.com/eze-kiel/rrpn
Last synced: 4 days ago
JSON representation
Rust RPN Calculator
- Host: GitHub
- URL: https://github.com/eze-kiel/rrpn
- Owner: eze-kiel
- Created: 2021-05-26T08:15:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T15:24:02.000Z (about 3 years ago)
- Last Synced: 2023-03-04T17:45:02.122Z (over 1 year ago)
- Language: Rust
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rrpn
Rust RPN Calculator
## Installation
```
$ git clone https://github.com/eze-kiel/rrpn.git
$ cd rrpn/
$ cargo build --release
```## Usage
```
./rrpn [-h]
```## Commands
```
== Basic operations
+, add : add the last 2 valutes of the stack
-, sub : substract the last 2 values of the stack
*, mul : multiply the last 2 values of the stack
/, div : divide the last 2 values of the stack
^, pow : do a power between the 2 values of the stack== Trigonometry
sin : calculate the sinus of the last value
cos : calculate the cosinus of the last value== Variables
pi : push pi to the stack
e : push e to the stack== Misc
sum : sum the stack
mean : calculate the mean value of the stack
swap : swap the last 2 values of the stack
c, clear : clear the stack
d, drop : drop the last value of the stack
q, quit : quit the program
?, h, help : show this help
```## License
MIT