Coder Social home page Coder Social logo

ep12 / uncertainties Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lmfit/uncertainties

0.0 0.0 0.0 3.18 MB

Transparent calculations with uncertainties on the quantities involved (aka "error propagation"); calculation of derivatives.

Home Page: http://uncertainties-python-package.readthedocs.io/

License: Other

Shell 0.60% Python 99.40%

uncertainties's Introduction

uncertainties

https://travis-ci.org/lebigot/uncertainties.svg?branch=master https://ci.appveyor.com/api/projects/status/j5238244myqx0a0r?svg=true https://readthedocs.org/projects/uncertainties-python-package/badge/?version=latest

This is the uncertainties Python package, which performs transparent calculations with uncertainties (aka "error propagation"):

>>> from uncertainties import ufloat
>>> from uncertainties.umath import *  # sin(), etc.
>>> x = ufloat(1, 0.1)  # x = 1+/-0.1
>>> print 2*x
2.00+/-0.20
>>> sin(2*x)  # In a Python shell, "print" is optional
0.9092974268256817+/-0.08322936730942848

This package also automatically calculates derivatives:

>>> (2*x+1000).derivatives[x]
2.0

Some useful links:

GitHub

The release branch is the latest stable release for Python 2.7+ (including Python 3+ through 2to3), while the release_python2.3 branch is the same but for Python 2.3 to 2.6 (with unit tests only run with Python 2.6). They should pass the tests.

master* branches in the Github repository are bleeding-edge, and do not necessarily pass the tests. The master and master_python2.3 are the latest, relatively stable versions (while other master* branches are more experimental).

Other branches might be present in the GitHub repository, but they are also temporary and represent work in progress that does not necessarily run properly yet.

License

This package and its documentation are released under the Revised BSD License.

uncertainties's People

Contributors

baldyeagle avatar benabel avatar cdeil avatar chrisburr avatar clade avatar ep12 avatar lebigot avatar mindw avatar mjpieters avatar newville avatar op3 avatar paulromano avatar rth 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.