{"id":13577604,"url":"https://github.com/lmfit/uncertainties","last_synced_at":"2025-05-14T02:05:32.175Z","repository":{"id":43781925,"uuid":"716303","full_name":"lmfit/uncertainties","owner":"lmfit","description":"Transparent calculations with uncertainties on the quantities involved (aka \"error propagation\"); calculation of derivatives.","archived":false,"fork":false,"pushed_at":"2025-04-29T05:02:19.000Z","size":9854,"stargazers_count":614,"open_issues_count":80,"forks_count":83,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-12T17:21:08.617Z","etag":null,"topics":["autodiff","autodifferentiation","differentiation","error-propagation","uncertainties"],"latest_commit_sha":null,"homepage":"http://uncertainties.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lmfit.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":"https://paypal.me/lebigot"}},"created_at":"2010-06-11T19:50:15.000Z","updated_at":"2025-05-06T08:19:05.000Z","dependencies_parsed_at":"2024-01-15T03:58:13.108Z","dependency_job_id":"e56ff104-b4ee-4e74-af6b-e2a3c128d965","html_url":"https://github.com/lmfit/uncertainties","commit_stats":{"total_commits":2264,"total_committers":19,"mean_commits":"119.15789473684211","dds":"0.041961130742049435","last_synced_commit":"804adccf3401aeacbcbae0d669f92131fcd02c03"},"previous_names":["lmfit/uncertainties","lebigot/uncertainties"],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmfit%2Funcertainties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmfit%2Funcertainties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmfit%2Funcertainties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmfit%2Funcertainties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmfit","download_url":"https://codeload.github.com/lmfit/uncertainties/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052692,"owners_count":22006716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autodiff","autodifferentiation","differentiation","error-propagation","uncertainties"],"created_at":"2024-08-01T15:01:22.862Z","updated_at":"2025-05-14T02:05:27.165Z","avatar_url":"https://github.com/lmfit.png","language":"Python","funding_links":["https://paypal.me/lebigot"],"categories":["Python"],"sub_categories":[],"readme":"uncertainties\n=============\n\n.. image:: https://readthedocs.org/projects/uncertainties/badge/?version=latest\n   :target: https://uncertainties.readthedocs.io/en/latest/?badge=latest\n.. image:: https://img.shields.io/pypi/v/uncertainties.svg\n   :target: https://pypi.org/project/uncertainties/\n.. image:: https://pepy.tech/badge/uncertainties/week\n   :target: https://pepy.tech/project/uncertainties\n.. image:: https://codecov.io/gh/lmfit/uncertainties/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/lmfit/uncertainties/\n.. image:: https://img.shields.io/github/actions/workflow/status/lmfit/uncertainties/python-package.yml?logo=github%20actions\n   :target: https://github.com/lmfit/uncertainties/actions/workflows/python-package.yml\n\nThe ``uncertainties`` package allows calculations with values that have\nuncertaintes, such as (2 +/- 0.1)*2 = 4 +/- 0.2.  ``uncertainties`` takes the\npain and complexity out of error propagation and calculations of values with\nuncertainties.  For more information, see https://uncertainties.readthedocs.io/\n\nBasic examples\n--------------\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from uncertainties import ufloat\n    \u003e\u003e\u003e x = ufloat(2, 0.25)\n    \u003e\u003e\u003e x\n    2.0+/-0.25\n\n    \u003e\u003e\u003e square = x**2\n    \u003e\u003e\u003e square\n    4.0+/-1.0\n    \u003e\u003e\u003e square.nominal_value\n    4.0\n    \u003e\u003e\u003e square.std_dev  # Standard deviation\n    1.0\n\n    \u003e\u003e\u003e square - x*x\n    0.0  # Exactly 0: correlations taken into account\n\n    \u003e\u003e\u003e from uncertainties.umath import sin, cos  # and many more.\n    \u003e\u003e\u003e sin(1+x**2)\n    -0.95892427466313845+/-0.2836621854632263\n\n    \u003e\u003e\u003e print (2*x+1000).derivatives[x]  # Automatic calculation of derivatives\n    2.0\n\n    \u003e\u003e\u003e from uncertainties import unumpy  # Array manipulation\n    \u003e\u003e\u003e varr = unumpy.uarray([1, 2], [0.1, 0.2])\n    \u003e\u003e\u003e print(varr)\n    [1.0+/-0.1 2.0+/-0.2]\n    \u003e\u003e\u003e print(varr.mean())\n    1.50+/-0.11\n    \u003e\u003e\u003e print(unumpy.cos(varr))\n    [0.540302305868+/-0.0841470984808 -0.416146836547+/-0.181859485365]\n\nMain features\n-------------\n\n- **Transparent calculations with uncertainties**: Little or\n  no modification of existing code is needed to convert calculations of floats\n  to calculations of values with uncertainties.\n\n- **Correlations** between expressions are correctly taken into\n  account.  Thus, ``x-x`` is exactly zero.\n\n- **Most  mathematical operations** are supported, including most\n  functions from the standard math_ module (sin,...).  Comparison\n  operators (``\u003e``, ``==``, etc.) are supported too.\n\n- Many **fast operations on arrays and matrices** of numbers with\n  uncertainties are supported.\n\n- **Extensive support for printing** numbers with uncertainties\n  (including LaTeX support and pretty-printing).\n\n- Most uncertainty calculations are performed **analytically**.\n\n- This module also gives access to the **derivatives** of any\n  mathematical expression (they are used by `error\n  propagation theory`_, and are thus automatically calculated by this\n  module).\n\n\nInstallation or upgrade\n-----------------------\n\nTo install `uncertainties`, use::\n\n     pip install uncertainties\n\nTo upgrade from an older version, use::\n\n     pip install --upgrade uncertainties\n\nFurther details are in the `on-line documentation\n\u003chttps://uncertainties.readthedocs.io/en/latest/install.html\u003e`_.\n\n\nGit branches\n------------\n\nThe GitHub ``master`` branch is the latest development version, and is intended\nto be a stable pre-release version. It will be experimental, but should pass\nall tests..  Tagged releases will be available on GitHub, and correspond to the\nreleases to PyPI.  The GitHub ``gh-pages`` branch will contain a stable test version\nof the documentation that can be viewed at\n`\u003chttps://lmfit.github.io/uncertainties/\u003e`_.  Other Github branches should be\ntreated as unstable and in-progress development branches.\n\n\nLicense\n-------\n\nThis package and its documentation are released under the `Revised BSD\nLicense \u003cLICENSE.txt\u003e`_.\n\n\nHistory\n-------\n\n..\n   Note from Eric Lebigot: I would like the origin of the package to\n   remain documented for its whole life. Thanks!\n\nThis package was created back around 2009 by `Eric O. LEBIGOT \u003chttps://github.com/lebigot\u003e`_.\n\nOwnership of the package was taken over by the `lmfit GitHub organization \u003chttps://github.com/lmfit\u003e`_ in 2024.\n\n.. _IPython: https://ipython.readthedocs.io/en/stable/\n.. _math: https://docs.python.org/library/math.html\n.. _error propagation theory: https://en.wikipedia.org/wiki/Propagation_of_uncertainty\n.. _main website: https://uncertainties.readthedocs.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmfit%2Funcertainties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmfit%2Funcertainties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmfit%2Funcertainties/lists"}