-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I added the code to generate the ITL tests of reverse functions in ITF1788.jl. Here is an initial summary (I need to double check a few things
-
General:
-
The test suite has two "methods" for each function, one with the correct number of inputs as specified by the standard and one with one input less, which assumes that
x= [-Inf, Inf]e.g. bothabs_rev(a, x)andabs_rev(a) = abs_rev(a, entireinterval(). I need to check fro the standard whether these are required or optional, but in general it does not hurt to have those? From what I can tell,sqr_revis the only one which has also the method with one less input -
according to the standard, those functions should return one output. The current implementation returns multiple outputs and the "standard result" is generally the second one. Is this intentional? Should the number of outputs conform to the standard?
-
docstrings missing.
-
libieeep1788_rev.itl
- No support for decorated intervals.
-
power_revfails in 16 tests with negative exponent, the returned result is a little wider than the expected one - 33 cases failing with
mul_rev_IEEE1788
-
pow_rev.itl
- the functions powRev1 and powRev2 are required by the standard, they are currently implemented but not exported
- all tests for
powRev2fail, due to a typo in the source code (lobshould belog) - several tests for
powRev1andpowRev2fail, e.g.powRev1 [-infinity,-1.0] [entire] [-infinity,0.0] = [empty];, the current Julia implementation evaluates to[0, 0].
-
libieep1788_mul_rev.itl
- mul_rev_to_pair missing
-
Missing tests
- the functions
atan2Rev1andatan2Rev1are required by the standard, but even in ITF1788 there are no tests for these
- the functions