Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/poyea/eval

🧮 Mathematical expression calculator in Python
https://github.com/poyea/eval

evaluation evaluator expression expression-evaluator hacktoberfest mathematical-expressions mathematics parser python

Last synced: 3 months ago
JSON representation

🧮 Mathematical expression calculator in Python

Awesome Lists containing this project

README

        

#

eval


Mathematical expression calculator in Python.

## Installation
```console
pip install expression-parse-eval
```

## Usage
Read from a file:
```bash
$ cat text.txt
1**3+5
2**4**3
$ eval -f text.txt
6.0
15625.0
```
Command-line input:
```bash
$ eval 1 + 3**2 * 3
28.0
```
Interpreter:
```bash
$ python -m eval
```

## LICENSE
MIT