poyea / eval

🧮 Mathematical expression calculator in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eval

Mathematical expression calculator in Python.

Installation

pip install expression-parse-eval

Usage

Read from a file:

$ cat text.txt
1**3+5
2**4**3
$ eval -f text.txt
6.0
15625.0

Command-line input:

$ eval 1 + 3**2 * 3
28.0

Interpreter:

$ python -m eval

LICENSE

MIT

About

🧮 Mathematical expression calculator in Python

License:MIT License


Languages

Language:Python 100.0%