Last Update: Sep. 16, 2022
Simple Interval Arithmeric Library
Masahide Kashiwagi
The interval library in the kv (interval.hpp) is designed to be able to
change the type of endpoints to something other than double,
is seems to be slightly big if you just do interval arithmeric.
Therefore, we made an interval arithmetic library by simplifying
the interval.hpp in the kv library.
Download interval-simple-0.4.55.tar.gz (updated on Sep. 16, 2022)
Features of the library are as follows.
-
Simplified version of interval part of kv library.
-
No template. Therefore, the type of the endpoints of the interval is
only double, but the program is easy to read.
-
You do not need the boost library, you can use it alone.
-
Single file library. Only one file "interval.hpp" is necessary to use.
-
It has the same function as the interval library of kv,
such as having many mathematical functions,
except that it can not change the type of the endpoints.
-
Changing the rounding direction simply uses fesetround.
(However, Visual C++ uses _controlfp_s due to a fatal bug of VC++.)
-
It has mutual conversion function with directed rounding
between character string and interval.
-
We also properly supresses the numerical errors due to compiler optimization
using "volatile".
Simple Interval Arithmeric Library