BSD Ports

math/py-reals 0.0.5_1 DragonFly

Lightweight python3 library for arithmetic with real numbers

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
math, python
Package size
32.0 KiB, 196.5 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlymath/py-reals0.0.5_1
FreeBSDmath/py-reals0.0.6
HardenedBSDmath/py-reals0.0.6
GhostBSDmath/py-reals0.0.6

Install

Binary package:

pkg install py311-reals

From DPorts:

cd /usr/dports/math/py-reals && make install clean

Dependencies

Run dependencies 1

No port depends on this one.