FreeBSD Ports

math/ndiff 2.00_5

Compare files, ignoring numeric differences

Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
math
Package size
80.3 KiB, 203.3 KiB installed

Description

ndiff is a utility for comparing putatively similar files, ignoring small numeric differences. The utility is written by Nelson H. F. Beebe and covered by the GNU General Public License (GPL), version 2. It may be built with arbitrary precision support (more powerful) or using built-in floating point precision, see Makefile.

Assessing the consistency of a numerical program run in multiple environments (operating systems, architectures, or compilers) can be a difficult task for a human, as small differences in numerical output values are expected. File differencing utilites, such as diff(1), will generally produce voluminous output, often longer than the original files.

ndiff solves this problem. Taking two text files expected to be identical, or at least numerically similar, it allows to specify absolute and/or relative error tolerances for differences between numerical values in the two files, and then reports only the lines with values exceeding those tolerances. It also tells by how much they differ. A simple example:

% ndiff --relative-error 1.0e-3 test019.txt.1 test019.txt.2 ### Maximum relative error in matching lines = 8.64e-51 at line 129 field 4

Install

As a binary package — by origin, or by package name:

pkg install math/ndiff
pkg install ndiff

From the ports tree:

cd /usr/ports/math/ndiff/ && make install clean

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

RUN_DEPENDS=	ndiff>0:math/ndiff

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:latest2.00_52.00_52.00_42.00_52.00_5
FreeBSD:14:quarterly2.00_52.00_5n/a2.00_52.00_5
FreeBSD:15:latest2.00_52.00_5n/a2.00_52.00_5
FreeBSD:15:quarterly2.00_52.00_5n/an/an/a
FreeBSD:16:latest2.00_52.00_5n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

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

No port depends on this one.

Configuration

Options name: math_ndiff

OptionDefaultDescription
DOCSoffBuild and/or install documentation
GMPoffGMP (multiple precision arithmetic) support
USES
desthack
Service scripts
none

Files

distinfo 1
FileSizeSHA256
ndiff-2.00.tar.gz230850f2bbd9a2c8ada7f4161b5e76ac5ebf9a2862cab099933167fe604b88f000ec2c
Master sites 1
  • ftp://ftp.math.utah.edu/pub/misc/

Commit history 0

No commits in the history this site was built from.