Skip to main content

A fast, efficient Python library for mathematically operations, like integration, solver, distributions and other useful functions.

Project description

Python library mathtoolspy

CodeShip Travis ci Read the Docs CodeFactor Grade Code Climate maintainability Codecov lgtm grade total lgtm alerts GitHub GitHub release PyPI Version PyPI - Python Version PyPI Downloads

A fast, efficient Python library for mathematically operations, like integration, solver, distributions and other useful functions.

Example Usage

>>> from mathtoolspy.integration import gauss_kronrod

>>> fct = lambda x:exp(-x*x)
>>> integrator = gauss_kronrod()
>>> integrator(fct, -1.0, 2.0)
1.62890552357

Install

The latest stable version can always be installed or updated via pip:

$ pip install mathtoolspy

If the above fails, please try easy_install instead:

$ easy_install mathtoolspy

Examples

# Simplest example possible
        a, b, c, d, e = 1, 4, -6, -6, 1
    fct = lambda x : a*x*x*x*x + b*x*x*x + c*x*x + d*x + e
    opt = Optimizer1Dim(minimize_algorithm=brent)
    result = opt.optimize(fct, constraint=Constraint(-10.0, -2.0), initila_value=1.0)
    >>> result.xmin
    -3.70107061641
    >>> result.fmin
    -74.1359364077
    >>> result.number_of_function_calls
    40

Development Version

The latest development version can be installed directly from GitHub:

$ pip install --upgrade git+https://github.com/pbrisk/mathtoolspy.git

Contributions

Issues and Pull Requests are always welcome.

License

Code and documentation are available according to the Apache Software License (see LICENSE).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mathtoolspy-0.3.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

mathtoolspy-0.3-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file mathtoolspy-0.3.tar.gz.

File metadata

  • Download URL: mathtoolspy-0.3.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for mathtoolspy-0.3.tar.gz
Algorithm Hash digest
SHA256 cb5859fbe878831c61e83063f30499938b7eb3171b2ee490cf7ddce052664e5f
MD5 23611068275de08f46e8fd55c98ce1dd
BLAKE2b-256 a5fa2810b9771526aa310ab9bb8c394f488d97a274ae5ede145304847c6299a7

See more details on using hashes here.

File details

Details for the file mathtoolspy-0.3-py3-none-any.whl.

File metadata

  • Download URL: mathtoolspy-0.3-py3-none-any.whl
  • Upload date:
  • Size: 40.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for mathtoolspy-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1356b78bdf4cf5f3d14bdf1e7bc4609d917de663cb969ca267269cae59c8b7
MD5 b6c1f1bd6147b757f287d79de0131ec8
BLAKE2b-256 7094a3b5947e2cd0c21a11d4e21532a7c5f2331d189804117ab14ac5101960f2

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