[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60528] betaincinv throws error for some valid
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #60528] betaincinv throws error for some valid inputs |
Date: |
Sun, 22 Aug 2021 13:58:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 |
Follow-up Comment #10, bug #60528 (project octave):
I used the style
f(finv (x)) == x
for all of the BIST tests except for the ones specifically for this bug
report. From betaincinv.m
%!assert <*60528> (betaincinv (1e-6, 1, 3), 3.3333344444450617e-7, 2*eps)
%!assert <*60528> (betaincinv (1-1e-6, 3, 1), 0.9999996666665555, 2*eps)
%!assert (betainc (betaincinv (0.9, 1e-3, 1), 1e-3, 1), 0.9, 2*eps)
I think it is important that the first BIST test, which is a regression test
for the example code in comment #0, be left as a comparison to an exact value.
The second test is not actually a regression test for this bug report and so
it can be modified to use the other styling and to drop the bug 60528 tag.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60528>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/