Skip to main content

UNKNOWN

Project description

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:

#!/usr/bin/env python

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyBigParser-1.5.win32.exe (200.8 kB) Copy SHA256 hash SHA256 Windows Installer any Jan 17, 2014
pyBigParser-1.5.zip (4.3 kB) Copy SHA256 hash SHA256 Source None Jan 17, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page