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()

Supported Functions

  • cos, sin, abs, log10, log, exp,

  • tan, pi, e

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-1.1.zip (3.6 kB view hashes)

Uploaded Source

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