Apache OpenOffice (AOO) Bugzilla – Issue 74704
B(total,1,min,max) gives Err:502
Last modified: 2017-05-20 11:41:49 UTC
If you use "1" for the success probability you get a Err:502. But that is not necessary. If you use BINOMDIST, you get no error. Example B(10;1;0;4) gives Err:502 But BINOMDIST(4;10;1;1) works and gives 0. For success probability less than 1 the values of B(n;p;0;k) and BINOMDIST(k;n;1;1) are identical. It should result in 1 if max=total and 0 in all other cases.
Hi Eike, please have a look at this one. Frank
Accepted.
change target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
I changed the case distinction and add the values for the missing cases p=0 and p=1. The spreadsheet contains two sheets with contain all possible cases, to verify, that the changes do not break the branching in other cases. The third sheet contains examples and a comparison to the handling of p=0 and p=1 in similar BINOMDIST to verify the results.
Created attachment 63497 [details] adds the missing branches to ScB in interpr3.cxx
Created attachment 63498 [details] test for the patch
Nice, thanks.
In cws odff06: revision 275203 sc/source/core/tool/interpr3.cxx
Reassigning to QA for verification.
verified in internal build cws_odff06