diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2022-10-17 03:51:16 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2022-10-17 03:51:16 +0000 |
commit | 3b00134bc22b77bd5575047ef79c07f761cf9c9f (patch) | |
tree | 5803bc6af850f8bdc9d9cfa4e53665af3045d828 /math/py-reals/pkg-descr | |
parent | d26e350ec3b9c9475dc0679573175650a7e3fa04 (diff) | |
download | ports-3b00134bc22b77bd5575047ef79c07f761cf9c9f.tar.gz ports-3b00134bc22b77bd5575047ef79c07f761cf9c9f.zip |
Add math/py-reals: Lightweight python3 library for arithmetic with real numbers
Diffstat (limited to 'math/py-reals/pkg-descr')
-rw-r--r-- | math/py-reals/pkg-descr | 15 |
1 files changed, 15 insertions, 0 deletions
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. |