Giter Site home page Giter Site logo

sonntagsgesicht / mathtoolspy Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 3.0 112 KB

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

License: Apache License 2.0

Python 100.00%

mathtoolspy's Introduction

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

mathtoolspy's People

Contributors

sonntagsgesicht avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.