BSD Ports

math/py-reals 0.0.6 FreeBSD

Lightweight python3 library for arithmetic with real numbers

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
5b9adb7fe4
License
MIT
Categories
math, python
Package size
37.1 KiB, 189.8 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
FreeBSDmath/py-reals0.0.6
DragonFlymath/py-reals0.0.5_1

Install

Binary package:

pkg install py312-reals

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-reals>0:math/py-reals

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0.60.0.60.0.40.0.5_10.0.6
FreeBSD:14:quarterly0.0.60.0.6n/a0.0.5_10.0.6
FreeBSD:15:latest0.0.60.0.6n/a0.0.5_10.0.5_1
FreeBSD:15:quarterly0.0.60.0.6n/an/an/a
FreeBSD:16:latest0.0.60.0.6n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
reals-0.0.6.tar.gz19295a981642415a2ebb676a95abb34683af58105511d3d27b8445d462d5f878522f5
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
5b9adb7fe4 Li-Wen Hsu math/py-reals: Fix build after switch to USE_PYTHON=pep517
e07b20dfd6 Li-Wen Hsu math/py-reals: Update to 0.0.6