From c5bbc1bf90594f20ee63cc0a9c7ff596e83ece77 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 20 Mar 2018 08:16:55 +0000 Subject: [PATCH] New port: math/py-uncertainties: Calculations with uncertainties on the quantities involved --- math/Makefile | 1 + math/py-uncertainties/Makefile | 21 +++++++++++++++++++++ math/py-uncertainties/distinfo | 3 +++ math/py-uncertainties/pkg-descr | 21 +++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 math/py-uncertainties/Makefile create mode 100644 math/py-uncertainties/distinfo create mode 100644 math/py-uncertainties/pkg-descr diff --git a/math/Makefile b/math/Makefile index bef93ddd28e6..08924f021df0 100644 --- a/math/Makefile +++ b/math/Makefile @@ -676,6 +676,7 @@ SUBDIR += py-sympy SUBDIR += py-theano SUBDIR += py-ufl + SUBDIR += py-uncertainties SUBDIR += py-viper SUBDIR += py-yt SUBDIR += qalculate diff --git a/math/py-uncertainties/Makefile b/math/py-uncertainties/Makefile new file mode 100644 index 000000000000..efff1c7f7e29 --- /dev/null +++ b/math/py-uncertainties/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= uncertainties +DISTVERSION= 3.0.2 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Calculations with uncertainties on the quantities involved + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYNUMPY} + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include diff --git a/math/py-uncertainties/distinfo b/math/py-uncertainties/distinfo new file mode 100644 index 000000000000..a4ff73c1d69f --- /dev/null +++ b/math/py-uncertainties/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1521533279 +SHA256 (uncertainties-3.0.2.tar.gz) = 91db922d54dff6094b4ea0d6e058f713a992cdf42e3ebaf73278e1893bfa2942 +SIZE (uncertainties-3.0.2.tar.gz) = 229516 diff --git a/math/py-uncertainties/pkg-descr b/math/py-uncertainties/pkg-descr new file mode 100644 index 000000000000..d062e9b90c57 --- /dev/null +++ b/math/py-uncertainties/pkg-descr @@ -0,0 +1,21 @@ +The uncertainties package is a free, cross-platform program that transparently +handles calculations with numbers with uncertainties (like 3.14+/-0.01). It can +also yield the derivatives of any expression. + +The uncertainties package takes the pain and complexity out of uncertainty +calculations. Error propagation is not to be feared anymore! + +Calculations of results with uncertainties, or of derivatives, can be performed +either in an interactive session (as with a calculator), or in programs written +in the Python programming language. Existing calculation code can run with +little or no change. + +Whatever the complexity of a calculation, this package returns its result with +an uncertainty as predicted by linear error propagation theory. It automatically +calculates derivatives and uses them for calculating uncertainties. Almost all +uncertainty calculations are performed analytically. + +Correlations between variables are automatically handled, which sets this module +a part from many existing error propagation codes. + +WWW: https://uncertainties-python-package.readthedocs.io/en/latest/