#arithmetic #interval #math #numerics

nightly inari

A Rust implementation of interval arithmetic

1 unstable release

new 0.9.10 Jun 18, 2021
0.9.7 May 26, 2021
0.9.3 Mar 12, 2021
0.8.0 Nov 24, 2020
0.2.1 Jul 17, 2020

#86 in Math

Download history 26/week @ 2021-02-23 13/week @ 2021-03-02 55/week @ 2021-03-09 22/week @ 2021-03-16 40/week @ 2021-03-23 54/week @ 2021-03-30 18/week @ 2021-04-06 92/week @ 2021-04-13 37/week @ 2021-04-20 32/week @ 2021-04-27 111/week @ 2021-05-04 57/week @ 2021-05-11 92/week @ 2021-05-18 144/week @ 2021-05-25 39/week @ 2021-06-01 66/week @ 2021-06-08

265 downloads per month

MIT and maybe LGPL-3.0+

175KB
4K SLoC

🦊 inari

crates.io docs build coverage

A Rust implementation of interval arithmetic.

Requirements

Rust version

A recent version of the nightly toolchain is required since some unstable features (asm, stdsimd) are used in the crate. You need to specify the toolchain by, for example, the toolchain file in your crate (see example.

Target CPU

  • x86-64

    Haswell-based and newer processors are supported.

    You need to specify the target CPU when building a crate that depends on inari. One way to do that is to add a configuration file to the consuming crate (see example; you may want to change native to haswell for maximum compatibility if you are going to distribute your binary).

  • AArch64 (a.k.a. ARM64)

    Experimental, it is not tested continuously.

Conditional features

  • gmp (enabled by default) - Enables operations that depend on GMP and MPFR, namely, transcendental functions and conversion between texts and intervals. You can opt-out the feature to reduce dependencies. Even in that case, you still have access to all arithmetic operations that are required for writing filters for robust geometric predicates.

Related projects

  • Graphest - a faithful graphing calculator

Changelog

TODO

References

Dependencies

~0–4.5MB
~109K SLoC