Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 🚀

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.