Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m-avagyan/math-calculator
A simple command-line calculator that supports basic arithmetic operations 🚀
https://github.com/m-avagyan/math-calculator
math mathematical-expressions shell-script
Last synced: 15 days ago
JSON representation
A simple command-line calculator that supports basic arithmetic operations 🚀
- Host: GitHub
- URL: https://github.com/m-avagyan/math-calculator
- Owner: m-avagyan
- License: mit
- Created: 2023-04-16T10:29:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-04-16T12:50:54.000Z (over 1 year ago)
- Last Synced: 2024-11-07T07:46:56.260Z (2 months ago)
- Topics: math, mathematical-expressions, shell-script
- Language: Shell
- Homepage: https://martikavagyan.com/
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Math Calculator
A simple command-line tool for performing basic arithmetic calculations.
## Installation
- Clone the repository: `git clone https://github.com/m-avagyan/math-calculator.git`
- Ensure you have Bash and BC installed on your system.## Usage
To use the calculator, simply run the `math.sh` script:
```bash
./math.sh [OPTION]
```You will be prompted to enter a mathematical expression. Type in the expression and press Enter to see the result.
To exit the calculator, type `exit` or press `Ctrl+C`.
## Options
The following options are available:
- `--help`: Display a help message that explains how to use the calculator and lists all available options.
- `--history`: Display the history of commands that have been entered into the calculator.
- `--clear`: Clear the history of commands.## License
This project is licensed under the MIT License. See the `LICENSE` file for more information.