Skip to main content

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


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.2.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file mathexpr-1.0.2.tar.gz.

File metadata

  • Download URL: mathexpr-1.0.2.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

Hashes for mathexpr-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4636b7c381d1ed30f0f21e592d7cc20274348538d18dd77145dab05957c197c2
MD5 b85482f1b2e6a2b4a422dc10c6766718
BLAKE2b-256 a05f3831211b5e1613677f0961e7095acc588be28fa60dc810c1d22a3982a36f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page