Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/poyea/eval
- Owner: poyea
- License: mit
- Created: 2020-08-29T11:18:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T18:35:31.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T09:27:07.929Z (3 months ago)
- Topics: evaluation, evaluator, expression, expression-evaluator, hacktoberfest, mathematical-expressions, mathematics, parser, python
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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