A mathematical expression parser and evaluator.
Project description
meth: A mathematical expression parser.
A python package to parse and evaluate mathematical expressions.
Examples
More examples in the examples/ directory.
import meth
meth.evaluate("2 + 2") # 4
meth.evaluate("sqrt(9)") # 3
# using variables
evaluator = meth.Evaluator()
evaluator.evaluate("x = 5")
evaluator.evaluate("x") # 5
Todo
- Lexer
- Parser
- Bracketing
- Multiplication using brackets
- Negative Numbers
- Variables
- Functions
- Interpreter
- Binary Operations
- Unary Operations
- Variables
- Functions
- Add mathematical functions
- Simplify an expression
- Expand an expression
- AST to Equation String
- Documentation
- Publish to PyPI
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
meth-1.0.0.tar.gz
(20.0 kB
view hashes)
Built Distribution
meth-1.0.0-py3-none-any.whl
(22.4 kB
view hashes)