To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=99224 Issue #|99224 Summary|Wrong domain for x in HYPGEOMDIST Component|Spreadsheet Version|DEV300m41 Platform|PC URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|spreadsheet Reported by|regina
------- Additional comments from reg...@openoffice.org Sat Feb 14 14:09:03 +0000 2009 ------- Example: You have got an urn with M=6 white marbles and 4 black marbles, which gives N=10 marbles total. Now draw n=5 marbles without replacement. Define the random variable X as "number of white marbles in the draw". This random variable has the domain {0,1,2,3,4,5}. For x=0 it should be P(X=0)=0, but OOo returns an "invalid argument" error in this case. The spec odf1.2 draft has only the constraints x<=M and x<=n and 0<=x on x. Gnumeric returns 0 for HYPGEOMDIST(0;5;6;10). @kohei: Will your algorithm break, if the part "(x < n - N + M)" is dropped (in the condition in about line 1729 in interpr3.cxx)? Then a separate case distinction is necessary. The correction should be done, when HYPGEOMDIST will be extended to the cumulative case as defined in spec odf1.2. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@sc.openoffice.org For additional commands, e-mail: issues-h...@sc.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org