git: 3b00134bc22b - main - Add math/py-reals: Lightweight python3 library for arithmetic with real numbers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Oct 2022 03:54:10 UTC
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=3b00134bc22b77bd5575047ef79c07f761cf9c9f commit 3b00134bc22b77bd5575047ef79c07f761cf9c9f Author: Li-Wen Hsu <lwhsu@FreeBSD.org> AuthorDate: 2022-10-17 03:51:16 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2022-10-17 03:51:16 +0000 Add math/py-reals: Lightweight python3 library for arithmetic with real numbers --- math/Makefile | 1 + math/py-reals/Makefile | 19 +++++++++++++++++++ math/py-reals/distinfo | 3 +++ math/py-reals/pkg-descr | 15 +++++++++++++++ 4 files changed, 38 insertions(+) diff --git a/math/Makefile b/math/Makefile index a2dbf805a23c..b0342747c9a8 100644 --- a/math/Makefile +++ b/math/Makefile @@ -968,6 +968,7 @@ SUBDIR += py-qdldl SUBDIR += py-quadprog SUBDIR += py-random2 + SUBDIR += py-reals SUBDIR += py-rectangle-packer SUBDIR += py-roman SUBDIR += py-rpy2 diff --git a/math/py-reals/Makefile b/math/py-reals/Makefile new file mode 100644 index 000000000000..49e1cc9089cc --- /dev/null +++ b/math/py-reals/Makefile @@ -0,0 +1,19 @@ +PORTNAME= reals +PORTVERSION= 0.0.4 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lwhsu@FreeBSD.org +COMMENT= Lightweight python3 library for arithmetic with real numbers +WWW= https://github.com/rubenvannieuwpoort/reals + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.10+ +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/math/py-reals/distinfo b/math/py-reals/distinfo new file mode 100644 index 000000000000..bf6959a08743 --- /dev/null +++ b/math/py-reals/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665974950 +SHA256 (reals-0.0.4.tar.gz) = ce6f23006e2d47685273d5f33ac829037d6912339f1b2f704f1524e926f826dc +SIZE (reals-0.0.4.tar.gz) = 15407 diff --git a/math/py-reals/pkg-descr b/math/py-reals/pkg-descr new file mode 100644 index 000000000000..0e74b3acf81e --- /dev/null +++ b/math/py-reals/pkg-descr @@ -0,0 +1,15 @@ +Reals is a lightweight Python library for arbitrary precision arithmetic. It +allows you to compute approximations to an arbitrary degree of precision, and, +contrary to most other libraries, guarantees that all digits it displays are +correct. It works by using interval arithmetic and continued fractions. The +bulk of this code is based on Bill Gosper's notes on continued fractions in +which he presents algorithms for doing arithmetic on continued fractions. + +The reals library is characterized by: + + * Correctness; the reals library uses interval arithmetic to ensure that all + the digits are correct. + * Calculations are done in a streaming way; the result of previous + calculations can be re-used. + * Uses no external libraries. + * Focus on usability.