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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.00_5 | 2.00_5 | 2.00_4 | 2.00_5 | 2.00_5 |
| FreeBSD:14:quarterly | 2.00_5 | 2.00_5 | n/a | 2.00_5 | 2.00_5 |
| FreeBSD:15:latest | 2.00_5 | 2.00_5 | n/a | 2.00_5 | 2.00_5 |
| FreeBSD:15:quarterly | 2.00_5 | 2.00_5 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.00_5 | 2.00_5 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
| GMP | off | GMP (multiple precision arithmetic) support |
- USES
- desthack
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ndiff-2.00.tar.gz | 230850 | f2bbd9a2c8ada7f4161b5e76ac5ebf9a2862cab099933167fe604b88f000ec2c |
Master sites 1
- ftp://ftp.math.utah.edu/pub/misc/
Commit history 0
No commits in the history this site was built from.