Skip to content
/ eval Public

🧮 Mathematical expression calculator in Python

License

Notifications You must be signed in to change notification settings

poyea/eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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