Skip to main content

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

Release files for mathtoolspy 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mathtoolspy 0.3
File Size Uploaded Provenance Actions
mathtoolspy-0.3.tar.gz 29.1 kB Without provenance Details for mathtoolspy-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mathtoolspy 0.3
File Interpreter ABI Platform Actions
mathtoolspy-0.3-py3-none-any.whl Python 3 none any Details for mathtoolspy-0.3-py3-none-any.whl

Total release size: 69.4 kB

Release files / mathtoolspy-0.3.tar.gz

Download URL mathtoolspy-0.3.tar.gz
Size 29.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cb5859fbe878831c61e83063f30499938b7eb3171b2ee490cf7ddce052664e5f
BLAKE2b-256 checksum
How to use checksums
a5fa2810b9771526aa310ab9bb8c394f488d97a274ae5ede145304847c6299a7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / mathtoolspy-0.3-py3-none-any.whl

Download URL mathtoolspy-0.3-py3-none-any.whl
Size 40.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f1356b78bdf4cf5f3d14bdf1e7bc4609d917de663cb969ca267269cae59c8b7
BLAKE2b-256 checksum
How to use checksums
7094a3b5947e2cd0c21a11d4e21532a7c5f2331d189804117ab14ac5101960f2
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for mathtoolspy 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page