Skip to main content

Math parser for simple and compound strings math expressions evaluations

Project description

pyBigParser

pyBigParser provides classes for parsing long and complex math expresions. You might find it most useful for tasks involving evaluating from single functions to compounds functions. Typical usage often looks like this:

from pybigparser import evaluator

mybig = evaluator.bigFunction()
mybig.setFunction("x**2+2*y")
mybig.addSub("x", "24+6*c")
mybig.addSub("y", "25 / d")
mybig.addSub("c", "1")
mybig.addSub("d", "4")

mybig.evaluate()

mybig.getSubValue("x")
mybig.getSubValue("y")

Supported Functions

  • cos, sin, abs, log10, log, exp,
  • tan, pi, e

Versions

  • 1.3 - It saves the values for each sub-function.
  • 1.5 - Fixed OverFlow Error with Exp function

Warnings

  • The variables e and pi are reserved for the evaluator
  • Exceptions for iterative variables are not supported

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

pyBigParser-2.2.win-amd64.zip (9.5 kB view details)

Uploaded Source

Built Distribution

pyBigParser-2.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pyBigParser-2.2.win-amd64.zip.

File metadata

  • Download URL: pyBigParser-2.2.win-amd64.zip
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for pyBigParser-2.2.win-amd64.zip
Algorithm Hash digest
SHA256 73f2bf40f39f5ad13ee584402f97fa0a5a3e7ecdbb9ca42a8a5c6eef4cf14e81
MD5 800f16fceaea93506fb9c33fd89ed57d
BLAKE2b-256 8d163be10c14b51416b1d6c4f64ac9c64fdb6dd0aaca1f41fa31d69f18005e1e

See more details on using hashes here.

File details

Details for the file pyBigParser-2.2-py3-none-any.whl.

File metadata

  • Download URL: pyBigParser-2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for pyBigParser-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de2dc2f2b4d7c08a8fd2c49dc0f88101b4f084a6399efeb52dc25f6e2b9bd997
MD5 9ba10732e910a659776b31371efda6e1
BLAKE2b-256 e60c69d1d3de25c6ff41ad597e53247353e2af900a20ebfd14cc22903e12696e

See more details on using hashes here.

Supported by

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