Skip to main content

Python library for mathematically operations, like integration, solver, distributions and other useful simple and rich math functionality.

Project description

https://img.shields.io/codeship/d89309c0-4619-0135-9944-0ac58edb84f9/master.svg https://readthedocs.org/projects/mathtoolspy/badge

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
mathtoolspy-0.2-py2-none-any.whl (30.3 kB) Copy SHA256 hash SHA256 Wheel py2 Dec 31, 2017
mathtoolspy-0.2.zip (41.4 kB) Copy SHA256 hash SHA256 Source None Dec 31, 2017

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page