unc

uncertainties

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

Showing:

Popularity

Downloads/wk

0

GitHub Stars

355

Maintenance

Last Commit

23d ago

Contributors

18

Package

Dependencies

8

License

Revised BSD License

Categories

Readme

uncertainties

.. image:: https://readthedocs.org/projects/uncertainties/badge/?version=latest :target: https://uncertainties.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status .. image:: https://img.shields.io/pypi/v/uncertainties.svg :target: https://pypi.org/project/uncertainties/ .. image:: https://pepy.tech/badge/uncertainties/week :target: https://pepy.tech/project/uncertainties .. image:: https://codecov.io/gh/lebigot/uncertainties/branch/master/graph/badge.svg :target: https://codecov.io/gh/lebigot/uncertainties/ .. image:: https://travis-ci.com/lebigot/uncertainties.svg?branch=master :target: https://travis-ci.com/lebigot/uncertainties .. image:: https://ci.appveyor.com/api/projects/status/j5238244myqx0a0r?svg=true :target: https://ci.appveyor.com/project/lebigot/uncertainties

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 of arbitrary functions:

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

The main documentation is available at https://uncertainties.readthedocs.io/.

Git branches

The release branch is the latest stable release. It should pass the tests.

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

Other branches might be present in the GitHub repository, but they are typically 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 <LICENSE.txt>_.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100