To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=69069


User regina changed the following:

                What    |Old value                 |New value
================================================================================
              Issue type|DEFECT                    |PATCH
--------------------------------------------------------------------------------




------- Additional comments from [email protected] Tue Apr 21 20:21:42 
+0000 2009 -------
The problems in POISSON have two reasons:
The implementation calculated the factorial in the formula as separate sub-term,
which will overflow for large x.
It calculated exp(-lambda), which will underflow for large lambda.

The second reason was not only in the cumulative part but in the mass part too.
(The other problem in the mass part had been fixed in issue 26022 already.)

To avoid the overflow in factorial, I change the calculation order.
To avoid the underflow in exp(-lambda), I made a case distinction. For large
lambda a different method is used. That is not as accurate as the iteration in
the case of small lambda, but it still gives 12-13 significant digits.

---------------------------------------------------------------------
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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to