2021-01-06 17:15:38 +00:00
|
|
|
{ buildOctavePackage
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, mpfr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildOctavePackage rec {
|
|
|
|
pname = "interval";
|
2022-12-23 16:48:21 +00:00
|
|
|
version = "3.2.1";
|
2021-01-06 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
|
2022-12-23 16:48:21 +00:00
|
|
|
sha256 = "sha256-OOUmQnN1cTIpqz2Gpf4/WghVB0fYQgVBcG/eqQk/3Og=";
|
2021-01-06 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mpfr
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://octave.sourceforge.io/interval/index.html";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ KarlJoad ];
|
|
|
|
description = "Interval arithmetic to evaluate functions over subsets of their domain";
|
|
|
|
longDescription = ''
|
|
|
|
The interval package for real-valued interval arithmetic allows one to
|
|
|
|
evaluate functions over subsets of their domain. All results are verified,
|
|
|
|
because interval computations automatically keep track of any errors.
|
|
|
|
|
|
|
|
These concepts can be used to handle uncertainties, estimate arithmetic
|
|
|
|
errors and produce reliable results. Also it can be applied to
|
|
|
|
computer-assisted proofs, constraint programming, and verified computing.
|
|
|
|
|
|
|
|
The implementation is based on interval boundaries represented by
|
|
|
|
binary64 numbers and is conforming to IEEE Std 1788-2015, IEEE standard
|
|
|
|
for interval arithmetic.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|