A library for parsing math strings
Project description
MathExpr
MathExpr is a Python library for parsing and evaluating mathematical expressions.
Table of Contents
Getting Started
To get started with this project, please follow these steps:
Prerequisites
- Python 3.8+
- pip 20.0+
Installation
To install the library, run the following command:
pip install mathparse
Features
MathExpr provides the following features:
- Parsing mathematical expressions
- Evaluating mathematical expressions
Usage
To use MathExpr, import the MathParse class and use the parse and evaluate methods:
from mathexpr import MathParse
math_string = "(2 + 3) * 4^3"
result = MathParse.evaluate(math_string)
Contributing
If you would like to contribute to this project, please fork the repository and create a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mathexpr-1.0.1.tar.gz
(1.6 kB
view details)
File details
Details for the file mathexpr-1.0.1.tar.gz.
File metadata
- Download URL: mathexpr-1.0.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54240dbd9ca68fa433fecc218357625d82cb8a049b5f1d53b0f4116d80eda202
|
|
| MD5 |
498191ee36e96a99e024746c0a1c0f98
|
|
| BLAKE2b-256 |
131988812422c2214c0c0bbb1394970c7c600f4120b25d1333d34c994832b092
|